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
Get step-by-step solutions from verified subject matter experts
