Quote
Create a class called “Rectangle” with attributes length and width, each of which
defaults to 1. Provide member functions that calculate the perimeter and area of the
rectangle. Also, provide set and get functions for the length and width attributes.
The set function should verify that both length and width values are larger than 0
and less than 20. Eventually, include a function square that determines whether the
rectangle is a square
defaults to 1. Provide member functions that calculate the perimeter and area of the
rectangle. Also, provide set and get functions for the length and width attributes.
The set function should verify that both length and width values are larger than 0
and less than 20. Eventually, include a function square that determines whether the
rectangle is a square
can you Explain to me what I can Do ??:confused:


Sign In
Create Account


Back to top









