Question: Task 2 2. Construct a class and a member function: 2.1 Use the following Package class (depicted using UML class notation) to define Package class
Task 2 2. Construct a class and a member function: 2.1 Use the following Package class (depicted using UML class notation) to define Package class with its private and public members. [5 points) Package -value: int -weight: double +Package(value: int, weight: double) Ltprint 2.2 Complete the code for the Package's constructor. This is to set the value for value and weight of the object Package when created. [3 points] Package::Package(int v, double w) //insert code here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
