Question
Asked by:
$10.00 java help homework
- From Computer-Science: Object-Oriented-Programming , Computer-Science: Programming-Methods
- Closed, but you can still post tutorials
- Due on Jun. 09, 2009
- Asked on Jun 06, 2009 at 5:27:24PM
Q:Using the principle of polymorphism provide implementation for the calculateFees() method for each Online Fax Subscription type.
Subscription is the superclass for the Online Fax Subscription hierarchy. Trial, Basic, and Premium are subclasses of Subscription. All subscriptions have first and last names, email address, and subscription start date. Trial has number of faxes sent attribute. Basic has monthly fee attribute. Premium has monthly fee attribute and number of faxes received. Premium packages are the only subscription that allows incoming efaxes.
Trial calculateFees() returns the number of Faxes sent multiplied by .50.
Basic subscription calculateFees() returns the monthly rate.
Premium calculateFees() returns the monthly rate + faxes received multiplied by .20.
The beginning of the code and all its classes are attached in the file, using the instructions above, finish the code with them and doneAttachments:MFrazer_P2db2.zip (351K)



