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

1 Expert Approved Answer
Step: 1 Unlock

Firstly lets define a Student class A Student class could include a variety of attributes but for th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction Java Program Questions!