Given this class specification: Class: Car Data members: int cost Write these function definitions: 1. An internal definition for a one-parameter Constructor. 2. An internal definition for a default Constructor using Constructor Delegation. Write one line of code for each: 1. Instantiate an object using the one-parameter Constructor. 2. Instantiate an object using the default Constructor.
need help with c++...paste indented code here
Given this class specification:
Class: Car
Data members: int cost
Write these function definitions:
1. An internal definition for a one-parameter Constructor.
2. An internal definition for a default Constructor using Constructor Delegation.
Write one line of code for each:
1. Instantiate an object using the one-parameter Constructor.
2. Instantiate an object using the default Constructor.
Q:
Given this class specification:
Class: Car
Data members: int cost
Write these function definitions:
1. An internal definition for a one-parameter Constructor.
2. An internal definition for a default Constructor using Constructor Delegation.
Write one line of code for each:
1. Instantiate an object using the one-parameter Constructor.
2. Instantiate an object using the default Constructor.
Step by step
Solved in 2 steps