Professional Documents
Culture Documents
Problem Statement:
Additional Requirements: override the toString in each classes, provide getters and and
setters in each class and provide a display method in each class.
Use the Package Inheritance Hierarchy created above. Write a test program that
creates objects of each type of Package and tests member function calculateCost. For each
Package, invoke get functions to obtain the address information of the sender and the
recipient, then print the two addresses as they would appear on mailing labels. Also, call each
Package's calculateCost member function and print the result..
Note: Allow the user to select what type of package he wants to avail.