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

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!