Python Classes & Inheritance: Working with Inheritance in Python
Python 3.0+
| Intermediate
- 12 Videos | 1h 9m 53s
- Includes Assessment
- Earns a Badge
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 courserecall the default base class for all Python classesmodel an is-a relationship using inheritanceinvoke base class methods from subclassesprovide implementations for base class methodswork with class hierarchies
-
define methods in a subclassdefine multiple inheritance levels in classesdefine multiple base classes for a single subclassrecall what polymorphism isimplement polymorphism in Pythonimplement 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
-
1.Course Overview1m 55sUP NEXT
-
2.Inheriting from the Object Base Class5m 39s
-
3.Modeling is-a Relationship Using Subclasses5m 50s
-
4.Invoking Base Class Methods from Subclasses5m 11s
-
5.Defining Implementations of Base Class Methods4m 44s
-
6.Superclass and Subclass Hierarchies6m 20s
-
7.Defining Methods in the Subclass4m 31s
-
8.Multiple Inheritance9m 6s
-
9.Multilevel Inheritance7m 50s
-
10.Polymorphism - Part 16m 45s
-
11.Polymorphism - Part 26m 11s
-
12.Exercise: Implementing Class Inheritance5m 52s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.