Define a class called plot that has private members of


Question - Define a class called Plot that has private members of length and width. Include a constructor and a public function that calculates the area and the length of the boundary of the field.

Use public functions in a program that computes and displays the area and the length of the boundary of the plot where the length and width are 7 and 9 respectively.

Hint: The length of the boundary is 2 * (length + width).

The solution must be error free and compile correctly on first attempt.  Any code that does not do this will not be awarded points.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Define a class called plot that has private members of
Reference No:- TGS0966374

Expected delivery within 24 Hours