Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
ava
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 keep it simple pls
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started