Question: ava keep it simple pls Question 5.2: In the Student class, add: 1. getFirst: a method which returns the first name. 2. setFirst: a method
Question 5.2: In the Student class, add: 1. getFirst: a method which returns the first name. 2. setFirst: a method that uses newFirst variable as parameter to initialize the first name. 3. getStudentNumber: a method which returns the student number. 4. In the main method, call the setFirst method for S1 and S2. 5. Show the first name of S1 and S2 using getFirst method. 6. Show the student number using getStudentNumber method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
