Question: **using C++** Construct a class named Rectangle that has double-precision data members named length and width. The class should have member functions named perimeter() and

**using C++**

Construct a class named Rectangle that has double-precision data members named length and width. The class should have member functions named perimeter() and area() to calculate a rectangles perimeter and area, a member function named setdata() to set a rectangles length and width, and a member functionnamed showdata() that displays a rectangles length, width, perimeter, and area.

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!