Question: Write C++ Program, (a) Write a default constructor for the class to accept '3.0' as the default X and '6.0'as the default Y. Enter the

Write C++ Program,

(a) Write a default constructor for theclass to accept '3.0' as the default X and '6.0'as the default Y.

Enter the task number: 3

The x and y values are 3 and 6

(b) - Write a fully qualified constructorfor the class which accepts input from user inmain() for both X and Y.

Enter the task number: 3

The x and y values are 3 and 6

Enter x and y values : 2.8 6.6

The x and y values are 2.8 and 6.6

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 Programming Questions!