Question: rary > CIS 2 0 0 : Computer Science II home > 9 . 3 : Ops: new, delete, and - > zyBooks catalog CHALLENGE

rary > CIS 200: Computer Science II home >9.3: Ops: new, delete, and ->
zyBooks catalog
CHALLENGE
ACTIVITY
9.3.3: Operators: new, delete, and .
538054.3686090.9329y?
Jump to level 1
Assign pointer myCylinder with a new Cylinder object. Call myCylinder's Read(0 to read the object's fields. Then, call myCylinder's Print() to output the values of the fields. Finally, delete myCylinder.
Ex: If the input is 9.01.0, then the output is:
Cylinder's radius: 9.0
Cylinder's height: 1.0
cylinder with radius 9.0 and height 1.0 is deallocated.
#include
 rary > CIS 200: Computer Science II home >9.3: Ops: new,

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!