I have created a class, beverage, that has a method called d…

I have created a class, beverage, that has a method called drink.  I then create a class from that class, called coffee.  The coffee class also has the drink method, even though I didn’t explicitly create it in the class.  This is because of one of the four fundamental features called inheritance  polymorphism abstraction encapsulation

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