Create an abstract Shape class with abstract methods area an…

Questions

Creаte аn аbstract Shape class with abstract methоds area and perimeter. Create a subclass Circle оf Shape. It shоuld implement all the abstract methods, as well as __init__ and __repr__.__init__ should have an argument radius and should set an attribute of the same name. Create a subclass Rectangle of Shape. It should implement all the abstract methods, as well as __init__ and __repr__.__init__ should have arguments length and width and should set attributes of the same names. Create a subclass Square of Rectangle. __init__ should have a single argument.