Skip to content

Opening book details…

Can I read Parallelogram Area and Perimeter Class on EtoBox?

Parallelogram Area and Perimeter Class by apan is a document available to read on EtoBox.

What is Parallelogram Area and Perimeter Class about?

The document defines a superclass called perimeter that calculates the perimeter of a parallelogram using length and breadth variables. It then defines a subclass called Area that inherits from perimeter and calculates the area of the parallelogram using the length, breadth from the superclass and a new height variable. The program takes user input for length, breadth and height, creates an Area object and calls methods to calculate and display the area and perimeter.

Author
apan
Language
EN

More by apan

Browse all works by apan