Inheritance

Create a class called Rectangle so that, given a height and width, the object would calculate and display the length, width, the perimeter, and the area. Do not include a constructor for this class
Another class called Box is derived from the Rectangle class. This class given the breadth of the box, it should display the same pieces of information as the Rectangle. Additionally, the Box objectshould calculate and display its volume

Read the forum rules and adhere to them, or I'll continue to delete your threads.

How about I do your homework for you if you do my homework for me. Deal?

:rolleyes:

But actually, no, I'd rather not, because then I'd be wasting a lot of money spent on this education.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.