Python Object Oriented Progrmming Complete Course

preview_player
Показать описание
In this video we are going to learn about different concepts of Python Object Oriented Programming (OOP), this is more than one hour course and these are the topics that we are going to cover in this course

Python OOPs Concepts

Python is an object-oriented programming language. What it means that we can solve a problem in Python language by creating objects in our programs. In this video, we are going to discuss some OOPs concepts such as Classes, Objects along with the main principles of object oriented programming such as
inheritance, polymorphism, abstraction, encapsulation.
This video is just the introduction of oops concepts from the next video we start our complete practical examples

What Are Objects ?

The definition of an object in software development is not so very different. In software development Objects
are not typically something's that you can pick up, sense, or feel, but they are models of something's that can do certain things and have certain things done to them.
Formally, an object is a collection of data and associated behaviors.

What Are Classes ?

A class is a blueprint for the objects. also a class is a way of organizing information about a type of data so a programmer can reuse elements when making multiple instances of that data type for example, if a programmer wanted to make three instances of Car, maybe a BMW, a Ferrari, and a Ford instance. The Car class would allow the programmer to store similar information that is unique to each car (they are different models, and maybe different colors, etc.) and associate the appropriate information with each car.

What Is Abstraction In Python OOP ?

In object oriented design abstraction means that the details are hidden from the outside world.
abstraction mechanism hide internal implementation details, and it should only reveal operations relevant for other objects

What Is Inheritance ?

Inheritance is the most famous relationship in object-oriented programming.
In object-oriented programming one class can inherit attributes and methods from another class. So in inheritance we have the concept of base class and derived class

What Is Encapsulation ?

In python we can restrict the access to methods and variables
So this preventing data from direct modification is called encapsulation, so in python we denote private attribute by using
Single _ or double __
Note: Python does not enforce you for the encapsulation

What Is Polymorphism ?

We are going to start with a real world example, as you know we use milk for drinking but milk can also be used to make
curd, butter and etc so the term polymorphism means to use something in different forms, in software development to maintain the code and to maintain the simplicity of the code we use the concept of polymorphism the very popular examples are method overloading and method overriding

And also in this video we are going to talk about python multiple inheritance, python multi level inheritance and
heirarchical inheritance
Рекомендации по теме