Question: Part A: Create a makefile. Source file names are Package.h , Package.cpp , TwoDayPackage.h , TwoDayPackage.cpp , and Labll.cpp . The executable file name should

Part A:
Create a makefile. Source file names are Package.h, Package.cpp, TwoDayPackage.h, TwoDayPackage.cpp,
and Labll.cpp. The executable file name should be Labl1.
Part B:
Using the UML Class Diagrams below as your guide, write the Package and TwoDayPackage class definitions.
(the h files). Class Package is the base class. TwoDayPackage is the derived class (use public inheritance).
Inheritance in UML diagrams is indicated by a solid line with arrowhead pointing at the base class.
Double check your prototypes in Package.h to make sure they match the UML. Then create Package.cpp and
write the function definitions.
Double check the prototypes in TwoDayPackage.h to make sure they match the UML. Then create
TwoDayPackage.cpp and write the function definitions.
Part C:
Write a test program called Labll.cpp that will instantiate several Package and TwoDayPackage objects.
Thoroughly test all of the member functions of these classes.
Part A: Create a makefile. Source file names are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!