A college has two types of student: full-time and part-time. All students have their name and date

Question:

A college has two types of student: full-time and part-time.
All students have their name and date of birth recorded.
A full-time student has their address and telephone number recorded.
A part-time student attends one or more courses. A fee is charged for each course. The number of courses a part-time student attends is recorded, along with the total fee and whether or not the fee has been paid.
The college needs a program to process data about its students. The program will use an object-oriented programming language.
a) Copy and complete the class diagram showing the appropriate properties and methods.

b) Write program code:

i) For the class definition for the superclass Student.

ii) For the class definition for the subclass FullTimeStudent.

iii) To create a new instance of FullTimeStudent with:

– Identifier: NewStudent
– Name: A. Nyone
– Date of birth: 12/11/1990
– Telephone number: 099111

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: