Question: in a python programming language in (spyder) app Write a separate python program to accomplish this question. Save the program with a filename [Your university
Write a separate python program to accomplish this question. Save the program with a filename [Your university idj.py. A. [0.5 Points] Write a class named Rectangle. B. [2 Points] Write an initializer/constructor method in the Rectangle class with two parameters to initialize the height and width C. [3 Points] Write a method named getArea that returns the area of the reclangle The area is height * width D. [1 Point] Write a Square class that inheriting from the Rectangle class. E. [1.5 Points] Write an initializer/constructor method in the Square class to initialize the inherited attributes, which are height and width. F. [2 Points] Create an object of type Rectangle with width-5 and beight 6, and print its area
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
