Question: in java pls!! 3 CLASS STUDENT An object of this class will represent a single student. 3.1 fields int id : A unique id number
in java pls!!
3 CLASS STUDENT An object of this class will represent a single student. 3.1 fields int id : A unique id number . String name : A non unique name. It can be first last or just first or any other string. int SAT : A numeric value between 0 and 1600. . you can add more as needed 3.2 methods Student (id, name, SAT): A constructor that initializes the above fields. getid, getName, get SAT : Getter methods copy : Not a constructor, but creates and returns a non-alias copy of this object. Useful for sharing the object without allowing modification. toString: Overrides the default method. Don't forget the @Override annotation. It represents a student in the form of id: name, e.g. 1234: Donald Knuth equals (Object other) : Overrides the default method and compares this Student to the other student. Don't forget the @override annotation. It returns true if the two students have the same id and name. Hint: You can start your method with the following code to check if the other object has the proper type, and then, don't forget to cast the other object before you use it. if ( ! ( other instanceof Student)) { return false; } you can add more as needed 3.3 manual grading criteria Correct choices for the visibility, the parameters and the return types. Proper documentation of fields and methods, preferably in javadoc style
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
