Question: ge manufacturer; / / Line 2 0 quantitiesInStock; / / Line 2 1 ble price; / / Line 2 2 ble discount; / / Line

ge manufacturer;
//Line 20
quantitiesInStock;
//Line 21
ble price;
//Line 22
ble discount;
//Line 23
//Line 24
Give the line number containing the constructor that is executed in each of the following declarations.
i. productType productl;
ii. productType product2("Microwave","M3562",
"GeneralPool", 35,175.00,0.1);
iii. productType product3("D1290",25,375.00,0.05);
iv. productType product4(10,8.50,0.2;
rite the definition of the constructor in Line 4 so that the instance variables are initialized to "","'","",0,o.o, and o.o, respectively. bles quantitiesInStock, price, and discount must be nonnegative.
rite the definition of the constructor in Line 6 so that the instance variables productName and manufacturer are initialized to the empty string, instance variable id is initialized legative. negative.
3] No file chosen
 ge manufacturer; //Line 20 quantitiesInStock; //Line 21 ble price; //Line 22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!