Starting from:
$35

$29

Lab 6 Solution

PROGRAM SPECIFICATIONS

In this lab you will create a basic inheritance hierarchy that consists of a base class of a Student, and two derived classes Grad and Undergrad.

CLASS SPECIFICATIONS

Student – Base Class

Data Members

        o Private String name

        o Protected int id; Methods
        o See JavaDocs for Methods

Grad – Derived from Student

Data Members

        o None – just the Base Class Methods
        o See JavaDocs for Methods

Undergrad – Derived from Student

Data Members

        o Private int representing graduation year

        o Base class data members Methods
        o See JavaDocs for Methods

TypeSort – Comparator

See JavaDocs




TO TURN IN

A zip file that contains:

All java source files needed to compile your code Sample run name cscd211Lab6out.txt

You zip will be named your last name first letter of your first name lab6.zip (Example: steinerslab6.zip)

More products