Object Oriented Programming in python

preview_player
Показать описание
Welcome to chai aur code, a coding/programming dedicated channel in Hindi language. Now you can learn best of programming concepts with industry standard practical guide in Hindi language.

All source code is available at my Github account:

Instagram pe yaha paaye jaate h:

Рекомендации по теме
Комментарии
Автор

4 months but still no 800 comments 😭 He is god level teacher .. help his channel grow

kaustubhgaikwad
Автор

I don’t know why this man is sharing this type of content free in youtube…. 😊…. Sooo much love…. So much valuable information ❤

Thecircuit
Автор

Learning Python Day 12 - present sir
00:03 Object Oriented Programming is like making Gujiya
01:58 Understanding object-oriented programming through generalized forms and classes.
05:45 Follow naming conventions and indentation in Python classes.
07:41 Understanding object creation and attributes in Python
11:41 Understanding object-oriented programming in Python.
13:36 Understanding the usage of variables and parameters inside a class in Python
17:44 Method to display full name of car brand and model
19:49 Object-oriented programming concepts in Python
24:06 Creating object and setting up wireless connection
25:55 Using inheritance and 'super' keyword to access parent class methods and attributes in Python
29:34 Encapsulation is about controlling access to class attributes
31:32 Creating methods for accessing and setting attributes in Python
35:31 Encapsulation and its importance
37:36 Polymorphism allows different behaviors for objects of the same class.
41:16 Class variables keep track of shared data, like counting instances.
43:32 Object creation and access in OOP Python
47:44 Static method in Java is a method belonging to the class, not owned by an instance.
49:52 Linking and Wiring in Object Oriented Programming
53:32 Decorators in Python allow you to modify functions.
55:19 Understanding data encapsulation and access control in object-oriented programming
58:51 Understanding the usage of decorators in Python
1:00:42 Understanding property decorators in Python.
1:04:49 Inheritance in electric car programming
1:06:54 Python supports classes, inheritance, and methods

swarnabhamajumder
Автор

Finally undestoood classes in python so easily, now i finally get what that self, and constructor and how to use them, earlier it was so confusing. Thank you!

Debraj-HTC
Автор

58:15
when you did 'my_car.model = "City" ' in line 41 in that instance new property/attribute 'model' was created so now there are two attributes one '__model' and another 'model' for object 'my_car'. This happens because we can create new property for any object on the go and is not necessary to be in the class.

anujpoudel
Автор

Pass is special keyword used as a placeholder for a code. In python when we make a class and we want to specify the use case later we just use pass to avoid error and code still being empty

anonyone
Автор

I am trying to learn oops in python since many days but unable because of you now I am confident in oops. Thank you sir

hetashrikansariwala
Автор

i noticed a good point in static method that we can execute static function using object but we have to remove " self " as a parameter from static function that means we are not sending a reference of our object ( self contains reference of object ) that we are accessing the static by class only

karannegi-ym
Автор

dialogue yaad agya😂"Maamla aagya h class ka aur tum maat khaa gye ho class se kuki ham h unchi class ke aur tum ho nichi class ke"

ashurathi
Автор

52:25 jab staticmethod use kar k method bnaye the to obj se acess ho jatata sir

Ex-



output :-
Cars are means of transport
Cars are means of transport

ashishkrpandey
Автор

The pass statement is used as a placeholder for future code. When the pass statement is executed, nothing happens, but you avoid getting an error when empty code is not allowed. Empty code is not allowed in loops, function definitions, class definitions, or in if statements.

mubeenashraf
Автор

OOPs was so confusing for me earlier! Finally undestoood classes in python so easily, now i finally get what that self, and constructor and how to use them. Thank you so much sir!

devottamvaishnav
Автор

In Python, static methods are indeed meant to be accessed by the class itself rather than by instances of the class. However, there is a subtle difference in how static methods are defined and accessed in Python compared to other programming languages like Java or C++.


This means that while static methods can be accessed using the class name, they can also be accessed using an instance of the class, as shown in the example you provided. When you call a static method using an instance of the class, the instance itself is not used in any way. The method is simply called using the class's namespace.

This behavior is different from static methods in other programming languages, where static methods are truly bound to the class and cannot be accessed using an instance of the class. In Python, the ability to access static methods using both the class name and an instance of the class provides greater flexibility and allows for more concise code in certain situations.

It's important to note that while static methods can be accessed using both the class name and an instance of the class, they should generally be accessed using the class name for consistency and clarity.

class MyClass:
@staticmethod
def my_static_method():
print("Hello from static method!")

# Calling using the class name
MyClass.my_static_method() # Output: Hello from static method!

# Calling using an object
obj = MyClass()
obj.my_static_method() # Output: Hello from static method!

pranaypaul
Автор

been following your videos since 2018 and LCO courses since I was in high school now in my second year uni in Aus. appreciate your work

danielhaidari
Автор

1:08:13
ek channel aaya h "chai aur code" ☕❤, jo dil se pdhate h aur dil se smjate h❤❤❤❤❤❤❤❤

priyankagehlot
Автор

Finally undestoood classes in python so easily, now i finally get what that self, and constructor and how to use them, earlier it was so confusing. Thank you!

soumyaranjanghadei
Автор

Finally found such a detailed playlist, was looking back to remember the definitions when I stumbled over this

manasanmol
Автор

Awesomely done. Hands the best teacher I have ever seen. cleared all the basics practically you are truly a gem sir for the Indian coding community. Thanks

prashantswaroop
Автор

Practice time
05:01 Basic class and objects
17:38 Class Method and Self
21:46 Inheritence
28:47 Encapsulation
37:31 Polymorphism
41:17 Class Variables
47:03 Static Method
54:36 Property Decorators
1:01:20 Class Inheritence and instance Function
1:03:24 Multiple inheritence

poojaheera
Автор

Isse acha content nai dekha mane related to learning python. Best playlist 😍

poojaheera