Question: Java. Define a Student class that has to two private instance variables, name and id. The former is a string, and the later an integer.
Java. Define a Student class that has to two private instance variables, name and id. The former is a string, and the later an integer. In addition, the class must have an instance method toString() that returns a string that shows the value of the name and the value of the id.
thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
