Question: 2. In the Student class define set and get method for all class's variables. I've already defined some setters and they have different visibility. Try

2. In the Student class define set and get method for all class's variables. I've already defined some setters and they have different visibility. Try to call them in main function in Lab9 class. And find which type you can call which you can't. Complete the constructor of Student. Set the default value:name = Alice,age-18,majo- computer science, studentID-1212345678,GPA-3.56 3. 4. Create another constructor to accept five parameters from user. And create a new Studernt instance with this constructor. Hint. Passing five parameters when you create new instances of Student 5. Create another constructor to accept three parameters(name,age and studentID) and create a new Student instance with this constructor Hint:Passing name,age,StudentlD when you create new instances of Student. 6. Add a displayStudent() function in the Student class to print out all the variables in the student class. Call this function for each instances you create above in Lab9 and see what information it prints
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
