Question: In Java A Student class encapsulates a student's ID as an int and quiz scores in an array of integers as follows: public class Student{
In Java
A Student class encapsulates a student's ID as an int and quiz scores in an array of integers as follows:
public class Student{
private int ID;
private int[] qScores;
}
Write a public member method, name equals, that takes in a Student object and returns true if the ID and the scores of the given object are the same as the internal/member ID and scores
Note: the scores are stored in arrays - you must store the values of the arrays in the same order they exist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
