CSE 1030 :: Lab 3
This lab will illustrate inheritance and abstract classes.
You are implementing a record system for a private club. The club has two levels of membership, "Bronze" and
"Silver", whose records are the same, but whose membership dues are calculated differently:
- "Bronze" members pay $1000 per year.
- "Silver" members, who are allowed to park at the club, pay $3000 per year, plus $1000 per year per vehicle
that they want to park.
Implement the record system as follows:
- Create an abstract class called ClubMember, to hold records in common for all club members (i.e., their name
and member number). This class should contain an abstract method for calculating annual fees.
- Extend the class with two classes, called BronzeMember and SilverMember, which implement
the abstract
method.
The API specificaion, in javadoc, is found here.