Question: **JAVA** 1) Suppose that Student class has three private attributes: int id; double gpa; and String name. Write the constructor that has no arguments. Initialize

**JAVA** 1) Suppose that Student class has three private attributes: int id; double gpa; and String name. Write the constructor that has no arguments. Initialize id to be 1000; gpa to be 0.0, and name to be No name yet 2) Suppose that Student class has three private attributes: int id; double gpa; and String name. Write the toString() method that returns a String describing the students information. 3) Write public boolean equals(Student other) method for Student class defined in previous problem. Two student objects are equal if they have the same ID.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!