What do the two methods inherit when they are in different classes?


The link to the lesson:https://www.codecademy.com/courses/learn-python/lessons/introduction-to-classes/exercises/warning-here-be-dragons?action=resume_content_item
In the code editor,the methods display_cart and display_order_history are in different classes, so what do they inherit.?

Every answer will be appreciated


ReturningCustomer is the child class, it inherits all methods from parent.


From a standpoint of access, the derived class can access all the methods of the super class, but the super class cannot access the methods of the derived class.


So Returning Customer is the derived class and Customer is the super class.


yes, you can also checkout the wiki:


for more information.