Introduction Two important terms to understand when learning Python and OOP (object-oriented programming) are inheritance and polymorphism. Inheritance Inheritance establishes a relationship between two classes - parent (superclass) and child (subclass). Child classes keep the attributes and methods of their parent, whilst also add ing new attributes or methods of its own. Furthermore, the child class can also override methods of its parent. Below shows an example: class NetDevice(object):

Close You've successfully subscribed to PacketFlow.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.