filmov
tv
Python Tutorial [Full Course]. OOPS (Abstraction and Inheritance in Python). Video part 27.

Показать описание
In This Python tutorial with OOPS (Object oriented programming) we will learn about abstraction and abstract classes in python along with inheritance in python.
Abstraction in Python is the process of hiding the real implementation of an application from the user and emphasizing only on how to use the application. How can we achieve Abstraction in Python? In Python, abstraction can be achieved using abstract classes and methods.
Python Inheritance. Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the class being inherited from, also called base class. Child class is the class that inherits from another class, also called derived class.
Java doesn't even support multiple inheritance, while Python has a sophisticated and well-designed approach to multiple inheritance. It's clear that all the superclasses BaseClass1, BaseClass2, BaseClass3 can inherit from other superclasses as well.
A nested or inner class is contained within another class. This could be for reasons of encapsulation, where the inner class is not useful by itself.
An inner class or nested class is a defined entirely within the body of another class. If an object is created using a class, the object inside the root class can be used.
Abstraction in Python is the process of hiding the real implementation of an application from the user and emphasizing only on how to use the application. How can we achieve Abstraction in Python? In Python, abstraction can be achieved using abstract classes and methods.
Python Inheritance. Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the class being inherited from, also called base class. Child class is the class that inherits from another class, also called derived class.
Java doesn't even support multiple inheritance, while Python has a sophisticated and well-designed approach to multiple inheritance. It's clear that all the superclasses BaseClass1, BaseClass2, BaseClass3 can inherit from other superclasses as well.
A nested or inner class is contained within another class. This could be for reasons of encapsulation, where the inner class is not useful by itself.
An inner class or nested class is a defined entirely within the body of another class. If an object is created using a class, the object inside the root class can be used.
Комментарии