Object-Oriented Programming (OOP) in Python 3 | Python Object Oriented Programming Tutorial

preview_player
Показать описание
In this Python Tutorial for Beginners Video, I am going to give the Introduction to Object-Oriented Programming (OOP). I will start with the differences between Procedural and Object-Oriented Programming. Then we will discuss why we need Object-Oriented Programming. What is Object-Oriented Programming. What are classes, what is an object, what are member variables and methods .

00:00:01 1 - Introduction to Object-Oriented Programming (OOP)
00:09:57 2 - Classes and Objects in Python (OOP)
00:20:13 3 - Python __init__ and self in class
00:32:04 4 - Is it possible to define multiple constructors in Python?
00:40:06 5 - Python Encapsulation
00:51:32 6 - Private methods in Python
00:57:42 7 - Python Inheritance
01:12:41 8 - How To Create Modules in Python 3
01:25:00 9 - Python Multiple Inheritance
01:30:28 10 - Python super()
01:38:06 11 - Python Operator Overloading
01:54:47 12 - Python Composition
02:00:23 13 - Python Aggregation + Difference in Aggregation and Composition
02:07:26 14 - Python Abstract Classes

Procedural Programming
----------------------------------------------
C, Pascal
unit – function
concentrates on creating functions
data and operations on the data are separated.
methodology requires sending data to procedure/functions.

Object-Oriented Programming
---------------------------------------------------------
C++, Java, Python
unit – class
centered on creating objects
Object: A single software unit that combines data and methods
Data in an object are known as attributes.
Procedures/functions in an object are known as methods.

In Python, everything is an object i.e. integers, strings, dictionaries, …
Class objects are instantiated from user-defined classes, other objects are from language defined types. Classes In python Can be defined anywhere in the program. In this video I am going to give you two Python Class examples.

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

00:00:01 1 - Introduction to Object-Oriented Programming (OOP)
00:09:57 2 - Classes and Objects in Python (OOP)
00:20:13 3 - Python __init__ and self in class
00:32:04 4 - Is it possible to define multiple constructors in Python?
00:40:06 5 - Python Encapsulation
00:51:32 6 - Private methods in Python
00:57:42 7 - Python Inheritance
01:12:41 8 - How To Create Modules in Python 3
01:25:00 9 - Python Multiple Inheritance
01:30:28 10 - Python super()
01:38:06 11 - Python Operator Overloading
01:54:47 12 - Python Composition
02:00:23 13 - Python Aggregation + Difference in Aggregation and Composition
02:07:26 14 - Python Abstract Classes

ProgrammingKnowledge
Автор

Great explanation! My old college Physics teacher, Prof Sahni, said one should always teach so the slowest member of the class would understand. You got that style. Keep it up!

LenCedeno
Автор

Simply an amazing course, fast, perfect explanation, down to point, not a single needless word... Thanks a bunch man. Saved me tons of time!

zmskhtc
Автор

I managed to finish this lecture within two days. I am confident to say that it was informative to have taken your course into consideration. You have saved my **s from shame. I thank you, cheers

zirace
Автор

Honestly, despite the accent (which usually works against good delivery in most cases), I have never encountered a lecturer who combines such perfect cadence of delivery with clear explanation and prudent repetition. Mate, you could teach anything!

samkhoudair
Автор

The BEST Tutorials for Oop in python...

kishorekumars
Автор

Perfect, the entire lesson is just what i needed to understand the main concepts. Thank you!

roma
Автор

Gradual developement of concepts.. The Best oop tutorial...

Some_random_guy_
Автор

As of Python 3.6 to 3.7 plus nearly all Libraries have been converted to Object Oriented Objects. What many programmers fail to recognize is that both Function and class methods work the same with the only difference being that a class method can separate variables from the main scope. In Python all Objects are stored by associative array Tuples (--here--).
And actually if you depend on only class method OO Programming you are in fact limiting yourself. Python is a Multi Paradigm Language.
Also the rule of Python has not changed in that if your problem can work in a function method Procedural'y, then use it first, but if it cannot work in a function method then use a class method to perform your problem. The reason this is True is that when using class methods over function methods you are in fact creating many un-needed pointers of associative array Tuples. You have to realize that the function method already is OOP and when you creaste a class method you are in fact doubling or replicating those Tuple's.

aboutmount
Автор

Fantastic Tutorial. Great Channel. Thanks for sharing your knowledge.

adante
Автор

Thanks a lot! You are a very good teacher. make more videos

joeMJ
Автор

great video! this video has explained many concepts that others didn't cover!

daming-xing
Автор

regarding @56:22 there is working "brute force" method as every dunder property or method __name is accessible using _[class name]__name. This is called name melting and in this example __private_method call would be In fact whole "private" idea is a workaround based on name change behind the scenes and you can't access dunder properties/mathods not because of protection, but due to wrong name you use ;-)

vxsniffer
Автор

Thank you sir for the excellent lecture !

pareshupadhyay
Автор

00:32:04 Which is also called constructor overloading, it is possible in C# but sadly not in Python :(
Awesome

navetwizer
Автор

Great technique and Great Explanation Bro

serenityrelaxationmusic
Автор

Loved the explanation! Keep it up! ♥ Love from Kolkata..

soumadip_skyy_banerjee
Автор

Good accent, good speed and clear examples!

stw
Автор

thank you, you missed on Static variables, methods, cls etc, anyway it was amazing

jjab
Автор

Thank you so much I love your way of teaching :)

spaceiswater