PROBLEM: 1. Write a Rectangle class in Python language, allowing you to build a rectangle with length and width attributes. 2. Create a Perimeter() method to calculate the perimeter of the rectangle...


PROBLEM:<br>1. Write a Rectangle class in Python language, allowing you to build a rectangle with length and width<br>attributes.<br>2. Create a Perimeter() method to calculate the perimeter of the rectangle and a Area() method to<br>calculate the area of the rectangle.<br>3. Create a method display() that display the length, width, perimeter and area of an object created<br>using an instantiation on rectangle class.<br>4. Create a Parallelepipede child class inheriting from the Rectangle class and with a height attribute<br>and another Volume() method to calculate the volume of the Parallelepiped.<br>

Extracted text: PROBLEM: 1. Write a Rectangle class in Python language, allowing you to build a rectangle with length and width attributes. 2. Create a Perimeter() method to calculate the perimeter of the rectangle and a Area() method to calculate the area of the rectangle. 3. Create a method display() that display the length, width, perimeter and area of an object created using an instantiation on rectangle class. 4. Create a Parallelepipede child class inheriting from the Rectangle class and with a height attribute and another Volume() method to calculate the volume of the Parallelepiped.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here