✍️ Get Writing Help
WhatsApp

Class temporary

Assume the definition of class temporary as given in Exercise 13. What is the effect of the following statements? (5)

temporary object1;                         //Line 1

temporary object2(“rectangle”, 3.0, 5.0);  //Line 2

temporary object3(“circle”, 6.5, 0.0);     //Line 3

temporary object4(“cylinder”, 6.0, 3.5);   //Line 4

Assume the definition of class temporary as given in Exercise 13 and the definitions of the member functions and the constructor as specified in Exercise 14. What is the output of the following statements? (3, 5)

temporary object1;

 temporary object2(“rectangle”, 8.5, 5);

 temporary object3(“circle”, 6, 0);

temporary object4(“cylinder”, 6, 3.5);

cout < fixed=””>< showpoint=””><>

object1.print();

object2.print();

object3.print();

object4.print();

object1.set(“sphere”, 4.5, 0);

object1.print();

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102