Question: ou create the First object which uses the default constructor. The default constructor initializes all data to 0 . You can use the following code
ou create the First object which uses the default constructor. The default constructor initializes all data to You can use the following code to do this.
Inventory part; This uses default constructor
Second object is created and initialized with the programmer hard coded data as follows:
int i ;
int q ;
double p ;
Inventory parti q p;
To create the third object, you need to collect the data from the user. Once you collect the data from the user, insert this data into the object.
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
