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).

In Java, give a complete definition of a class called OCCStudent that

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

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!