Computer Science, asked by mumit203, 7 months ago

Create a class named Tennisball having data member radius and weight as an integer type. A member function display() is used to show the values of radius and weight. A parameterized constructor is used to initialize the values of radius and weight. If no value is given while creating an object then, initialize the value of radius to 1 and weight to 2. Now create two object ob1(10,20) and ob2 and show the values of radius and weight of the objects. Also, mention the output.

Answers

Answered by palakprajapti12
0

Explanation:

take google help itz helps u

perfectlly❣️

Similar questions