10:24 PM Mon Nov 1 O 60% Constructors from msdn.microsoft.com Define a constructor as indicated. Sample output for below program: Year: 0, VIN: -1 Year: 2009, VIN: 444555666 324984.1778288.qx3zqy7 7...


Hello I would like to know how to do this in c++


10:24 PM Mon Nov 1<br>O 60%<br>Constructors from msdn.microsoft.com<br>Define a constructor as indicated. Sample output for below program:<br>Year: 0, VIN: -1<br>Year: 2009, VIN: 444555666<br>324984.1778288.qx3zqy7<br>7<br>SetVehicleIdNum (int vehIdNum);<br>Print() const;<br>void<br>void<br>CarRecord();<br>private:<br>int<br>8<br>1 test<br>9.<br>passed<br>10<br>yearMade;<br>vehicleIdNum;<br>11<br>12<br>int<br>All tests<br>13 };<br>passed<br>14<br>15 // FIXME: Write constructor, initialize year to 0, vehicle ID num to -1.<br>16<br>17 /* Your solution goes here */<br>18<br>19 void CarRecord::SetYearMade (int originalYear) {<br>20<br>yearMade = originalYear;<br>%3D<br>21 }<br>22<br>23 void CarRecord::SetVehicleIdNum (int vehIdNum) {<br>24<br>vehicleIdNum<br>vehIdNum;<br>||<br>Run<br>Feedback?<br>How was this section? IG<br>Provide feedback<br>

Extracted text: 10:24 PM Mon Nov 1 O 60% Constructors from msdn.microsoft.com Define a constructor as indicated. Sample output for below program: Year: 0, VIN: -1 Year: 2009, VIN: 444555666 324984.1778288.qx3zqy7 7 SetVehicleIdNum (int vehIdNum); Print() const; void void CarRecord(); private: int 8 1 test 9. passed 10 yearMade; vehicleIdNum; 11 12 int All tests 13 }; passed 14 15 // FIXME: Write constructor, initialize year to 0, vehicle ID num to -1. 16 17 /* Your solution goes here */ 18 19 void CarRecord::SetYearMade (int originalYear) { 20 yearMade = originalYear; %3D 21 } 22 23 void CarRecord::SetVehicleIdNum (int vehIdNum) { 24 vehicleIdNum vehIdNum; || Run Feedback? How was this section? IG Provide feedback

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here