Question: 2. Create a C++ class named classA that will have 2 methods as described below: The 1st method is named funA that is an instance

2. Create a C++ class named classA that will have 2 methods as described below: The 1st method is named funA that is an instance method and has two parameters and a returned value. The data type of the parameters and the returned type is double. Two parameters represent the width and length of a rectangle. The method funA will calculate the area of a rectangle and return the area as the returned value. The 2nd method is named funcC that is an instance method and has one parameter and has no returned value. The data type of the parameter is double. The parameter represents the radius of a circle. After calculating the area of a circle, the method funC will print the area. In the main method of this class, create an instance of this class and call funA and funC.

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!