Create a Class Rectangle with Attributes Length and Width



Create a Class Rectangle with Attributes Length and Width

Create a class Rectangle with attributes length and width. This class stores only the Cartesian coordinates of the four corners of the rectangle. The set() function accepts four sets of coordinates and verifies that each of
these is in the first quadrant with no single x or y coordinate larger than 20.0 provide member function that calculates the length(), width(), perimeter() and area() of the rectangle.

Asked by: Ishika Mittal on Oct 11, 2019.

Be the first to answer this Question !

Your Answer :

Name *:

Email *: (Required but will not be displayed)

» Your answers will be displayed only after manual approval.

Related Questions


No related questions found for this page.

Sponsored Links


Current Affairs

Quick Links