Question: In Java, give a complete definition of a class called OCCStudent that has the following fields (aka: instance variables): fullName userName cNumber gPA age Include
In Java, give a complete definition of a class called OCCStudent that has the following fields (aka: instance variables):
fullName
userName
cNumber
gPA
age
Include accessor methods for each instance variable and mutator methods for each (except C-number).
Add methods for the OCCStudent to
Create a new OCCStudent (constructor method)
Test whether two OCCStudent objects are equal (have the same full name, user name, C-number, age and GPA)
Tests whether two OCCStudent objects have the same name
Tests whether two OCCStudent objects are the same age
Tests whether one OCCStudent object is older than another
Tests whether one OCCStudent object is younger than another
Write a driver (test) program, which is another Java class in the same project, to demonstrates each method, with at least one true and one false case for each of the methods tested. Please name the driver (OCCStudentDemo).

OCC Student Class E Fields ea age a Number e a fullName gPA. userName El Methods equals getAge getCNumber getFull Name getGPA. getUser Name solder issameAge sYounger OCC Student setAge setFullName setGPA setuserName ToString
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
