Question: Instead of printing out the attributes of a student in the CollegeAdmission class, create a toString() method for the Student class. Edit your print statement
Instead of printing out the attributes of a student in the CollegeAdmission class, create a toString() method for the Student class. Edit your print statement in the CollegeAdmission class to just print the object.
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Firstly lets define a Student class A Student class could include a variety of attributes but for th... View full answer
Get step-by-step solutions from verified subject matter experts
