Python Classes & Inheritance: Working with Inheritance in Python

Python    |    Intermediate
  • 12 videos | 1h 9m 53s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 135 users Rating 4.6 of 135 users (135)
In this 12-video course, learners will discover how to implement inheritance by using Python classes and explore coding examples of concepts such as base classes, derived classes, overriding methods, and polymorphism. Key concepts covered in this course include the default base class for all Python classes; how to model an is-a relationship by using inheritance; and how to invoke base class methods from subclasses. Next, you will observe how to define implementations for base class methods; learn to work with superclass and subclass hierarchies; and learn to define methods in a subclass and the idea of subclasses having additional attributes. Continue by learning about multiple inheritance levels in classes; multiple base classes for a single subclass; and polymorphism, an important characteristic of objects in object-oriented programming. Then you will learn to implement polymorphism in Python; learn about class inheritance and polymorphism; and learn to implement base and derived classes. Finally, learn to specify an init method to initialize member variables; learn about getters and setters for member variables; and learn to override a method.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Recall the default base class for all python classes
    Model an is-a relationship using inheritance
    Invoke base class methods from subclasses
    Provide implementations for base class methods
    Work with class hierarchies
  • Define methods in a subclass
    Define multiple inheritance levels in classes
    Define multiple base classes for a single subclass
    Recall what polymorphism is
    Implement polymorphism in python
    Implement base and derived classes, specify an init method to initialize member variables, define getters and setters for member variables, and override a method

IN THIS COURSE

  • 1m 55s
  • 5m 39s
    After completing this video, you will be able to recall the default base class for all Python classes. FREE ACCESS
  • Locked
    3.  Modeling is-a Relationship Using Subclasses
    5m 50s
    Learn how to model an is-a relationship using inheritance. FREE ACCESS
  • Locked
    4.  Invoking Base Class Methods from Subclasses
    5m 11s
    In this video, you will learn how to invoke base class methods from subclasses. FREE ACCESS
  • Locked
    5.  Defining Implementations of Base Class Methods
    4m 44s
    After completing this video, you will be able to provide implementations for base class methods. FREE ACCESS
  • Locked
    6.  Superclass and Subclass Hierarchies
    6m 20s
    In this video, you will work with class inheritance. FREE ACCESS
  • Locked
    7.  Defining Methods in the Subclass
    4m 31s
    Learn how to define methods in a subclass. FREE ACCESS
  • Locked
    8.  Multiple Inheritance
    9m 6s
    In this video, you will learn how to define multiple inheritance levels in classes. FREE ACCESS
  • Locked
    9.  Multilevel Inheritance
    7m 50s
    To find out how to define multiple base classes for a single subclass, consult a Java programming reference guide. FREE ACCESS
  • Locked
    10.  Polymorphism - Part 1
    6m 45s
    Upon completion of this video, you will be able to recall what polymorphism is. FREE ACCESS
  • Locked
    11.  Polymorphism - Part 2
    6m 11s
    Find out how to implement polymorphism in Python. FREE ACCESS
  • Locked
    12.  Exercise: Implementing Class Inheritance
    5m 52s
    During this video, you will learn how to implement base and derived classes, specify an init method to initialize member variables, define getters and setters for member variables, and override a method. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 543 users Rating 4.5 of 543 users (543)
Rating 4.5 of 226 users Rating 4.5 of 226 users (226)
Rating 4.6 of 4247 users Rating 4.6 of 4247 users (4247)