The exclaim method prints out “I’m a car!” even though we di…
The exclaim method prints out “I’m a car!” even though we didn’t create it in our Prius definition. Why would it be able to do this? It inherits the method from the car class Car is a subclass which means it can also use that method The method exclaim is a base Python method which it my_car has by default None of these
Read DetailsI have a list of objects of many classes that represent shap…
I have a list of objects of many classes that represent shapes. I run a loop on that list, and use a .draw() method that appropriately draws shapes from these different classes. This is an example of which of the four object-oriented pillars?
Read Details