Question: Define a constructor as indicated. Sample output for below program: Year: 0 , Vin: - 1 Year: 2 0 0 9 , Vin: 4 4
Define a constructor as indicated. Sample output for below program: Year: Vin: Year: Vin: CHALLENGE Basic constructor definition Define a constructor as indicated. Sample output for below progran Year: VIN: ACTIVITY Year: VIN: #include using namespace std; class carRecord public: void setyearwadeint originalyear void SetvehicleTdNumint vehIdnum; void Print const; CarRecord; e private: int yearMade; int vehicleldNum; is FEtwrite constructor, initialize year to e vehicle IDnum to icode goes here void carRecord: : setyearMade int originalyear yearwade origina!vear; e Run
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
