Example with an array of Student objects. Requires Keyboard class.
Student class has private instance variables name, age and gpa which represent data values for individual students. Constuctor
Student objects can invoke the following service methods
ArrayOfStudents class has private instance variable x which is an array of Student objects. Array is created to hold at most LIMIT components each one being an object reference refering to a Student type of object. It also has int variable size that corresponds to actual number of students stored in x. The size should never exceed LIMIT. Finally, there is also a variable gradSize that holds the number of students that are potential graduate students (having gpa>=3.5). ArrayOfStudents class has constructor
ArrayOfStudents class also has the following service methods:
TestArrayOfStudents class has main method. It is designed to test the previous two classes. It creates an object from class ArrayOfStudents, prints student list, creates an array of potential graduate students and prints those students.