Object Oriented Programming in python

Sdílet
Vložit
  • čas přidán 14. 02. 2024
  • Visit chaicode.com for all related materials, community help, source code etc.
    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:
    github.com/hiteshchoudhary
    Our Open-Source Project is here: freeapi.app
    Join me at whatsapp: hitesh.ai/whatsapp
    for community discord: hitesh.ai/discord
    Instagram pe yaha paaye jaate h:
    / hiteshchoudharyofficial
    HTML video series: • HTML and VSCode - gett...
    Complete javascript series: • Javascript for beginne...
    Complete Reactjs series: • React JS roadmap | cha...
    Javascript and react interview series: • 1 call se shuru hui pl...
    Backend development with Javascript: • Javascript Backend Roa...
    Python Series: • Python series launch |...
  • Zábava

Komentáře • 691

  • @kaustubhgaikwad2562
    @kaustubhgaikwad2562 Před měsícem +9

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

  • @swarnabhamajumder9561
    @swarnabhamajumder9561 Před 5 měsíci +40

    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

  • @user-mc1rq4pw1o
    @user-mc1rq4pw1o Před 5 měsíci +8

    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!

  • @anujpoudel
    @anujpoudel Před 5 měsíci +20

    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.

  • @Thecircuit001
    @Thecircuit001 Před 5 měsíci +8

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

    • @sidhantarya2483
      @sidhantarya2483 Před 5 měsíci +2

      Bharat is already famous for rishi-muni gurus and hitesh sir wants best software engineers will also be from India in the whole world.

  • @danielhaidari1638
    @danielhaidari1638 Před 5 měsíci +3

    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

  • @ashurathi9286
    @ashurathi9286 Před 2 dny +1

    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"

  • @manasanmol6604
    @manasanmol6604 Před 2 měsíci +2

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

  • @devottamvaishnav65
    @devottamvaishnav65 Před 4 měsíci +2

    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!

  • @Waleedkkhan594
    @Waleedkkhan594 Před 4 měsíci

    This single video is more valuable then some CZcamsr's entire channels. Incredible work sir. I learnt so many things. Oops inheritance, polymorphism, constructor, decorator thank you so much sir

  • @muhammadhilal5807
    @muhammadhilal5807 Před 5 měsíci

    i thought that this would be that boring video by learning the OOP with fancy names, but loved it how you explain it by just solving problems and learning along with it.

  • @krishnamania1
    @krishnamania1 Před 5 měsíci +1

    Thank you sir , this is the first time I completely understand OOPS

  • @lakshyaaggarwal1608
    @lakshyaaggarwal1608 Před měsícem

    Sir You have made things so easy and made me learn to write project code with industry standard while being in college, I have also seen your backend playlist and it has helped me a lot thx a lot

  • @Vishal_0841
    @Vishal_0841 Před 5 měsíci +2

    Guru ji imandari se ab question solve kar raha hu mza aa raha hai ❤

  • @akashkr8541
    @akashkr8541 Před 3 měsíci

    oop se jaldi main bachpan me cycle sikh lia tha. now i am here. thanks for this video. i am going to watch it fully.

  • @ankuuur
    @ankuuur Před 5 měsíci +1

    Thank Your sir ji💖💖💖💖
    badhiya se OOPs ke basics clear ho gaye😊😊😊😊

  • @prashantswaroop4801
    @prashantswaroop4801 Před 24 dny

    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

  • @entertainmentkidzzclub6591
    @entertainmentkidzzclub6591 Před měsícem

    great video sir clear more concepts i always confused with static method but you clear it very simply

  • @SobanToor
    @SobanToor Před měsícem

    One of the best videos on Object-Oriented Programming in python I have ever witnessed.

  • @shaikusman536
    @shaikusman536 Před 2 měsíci

    Awsome content Hitesh sir ji...........Thanks a ton ...keep up the great work....Respect from Bangalore.

  • @spm_01
    @spm_01 Před 2 měsíci

    very nice video with full of learning I am in 4th year now I learnt how to play with oops with python - thank you so much sir :)))

  • @user-pz2oq2qx4u
    @user-pz2oq2qx4u Před 5 měsíci

    this is the best video i ever seen to learn oop concepts in python

  • @justtt.prerna
    @justtt.prerna Před 5 měsíci

    Thank you for providing such a valuable content...All my doubts are cleared..

  • @user-cp9kt3qq2d
    @user-cp9kt3qq2d Před 5 měsíci +1

    Thank you so much sir for oops concept explanation in a very easy manner 🙏

  • @mubeenashraf8676
    @mubeenashraf8676 Před 3 měsíci +1

    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.

  • @dinesh-hdnd
    @dinesh-hdnd Před 4 měsíci

    maza or samajh dono aa gaya video dekh ke thanks sir...

  • @nikshadali50
    @nikshadali50 Před 5 měsíci

    Sir, you teach in such a way which make any complex topic very easy

  • @subhasreekar1297
    @subhasreekar1297 Před 2 měsíci

    You have explained all the concepts very easily ... Good for the beginners like me😊

  • @Ady-tf1jm
    @Ady-tf1jm Před měsícem

    Thankyou Sir. Apne bhot easy way mai samja diya.

  • @manavbhatt3169
    @manavbhatt3169 Před měsícem

    I have completed the full video at once i loved the way hitesh sir teach , he teached all the concepts so smoothly and in very easy way , Big Thanks for this series sir 🙏✨️

  • @vaishnavikulkarni663
    @vaishnavikulkarni663 Před měsícem

    Thank you sir. You made this topic so much easier to learn

  • @letstry2854
    @letstry2854 Před 5 měsíci +1

    Great content wth clear explanation sir jee😍😍

  • @chandranitr5003
    @chandranitr5003 Před měsícem

    Amazing! I understand very well. Thank you sir

  • @hetashrikansariwala9527
    @hetashrikansariwala9527 Před 5 měsíci +2

    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

  • @deshichhora0121
    @deshichhora0121 Před 5 měsíci

    sir , bahut hi easy way me samjha le gaye ho aap

  • @sumitsinha1506
    @sumitsinha1506 Před 3 měsíci

    Great video. Thank you it was really helpful.

  • @user-wj1ky8my1h
    @user-wj1ky8my1h Před 4 měsíci

    Excellent tutorial...Thanks a lot!! 😃

  • @khawaja_here
    @khawaja_here Před měsícem

    First time am fully understand the concepts of OOP Thank you so much sir

  • @Shristi04
    @Shristi04 Před měsícem

    i love this playlist!!!!! thanks a lot sir

  • @gamerk88
    @gamerk88 Před měsícem

    I was stucked in OOp s in python for a day and then I find this vid and understand everything.Highly recommended for understanding oops in python.

  • @pranaypaul6361
    @pranaypaul6361 Před 5 měsíci

    A detailed OOP video....pure concept hammering session!!!

  • @harshitchaudhary1014
    @harshitchaudhary1014 Před 2 měsíci

    explained in an easy to understand way!

  • @Shantanu_lrnr
    @Shantanu_lrnr Před 5 měsíci

    Thank you sir for this python series...really helpful

  • @ankitpartap185
    @ankitpartap185 Před 11 dny

    Amazing video on Python OOPs. Etna toh college may nai krvaya jitna apnay ek vidoe may krva diya sir!!!! 😄

  • @TheHiro.
    @TheHiro. Před 23 dny

    Bada acha samjh aaya sirji 👍

  • @Jatin_Jaunwal
    @Jatin_Jaunwal Před měsícem

    One of the best videos on Python lecture and easily explains the difficult topics Thank you so much, sir 😇

  • @starksanket3880
    @starksanket3880 Před měsícem

    Sir, your approach to coding is as simple and refreshing as making a cup of tea. Just like brewing the perfect chai, you blend simplicity with richness, making the learning process both delightful and flavorful. Keep serving those amazing tutorials, they're a treat to our minds!

  • @ishatiwari3023
    @ishatiwari3023 Před 3 měsíci

    what an amazing way of explanation!

  • @anonyone8834
    @anonyone8834 Před 5 měsíci +3

    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

  • @ItachiUchiha-ix5sg
    @ItachiUchiha-ix5sg Před 27 dny

    its really a good video covered the topics very well and learned a lot of things

  • @atharvatirkhunde4517
    @atharvatirkhunde4517 Před 5 měsíci +1

    Great content and explanation sir.

  • @MCoder-x
    @MCoder-x Před 2 měsíci

    I think this was the best explanation to OOP. Thank you sir🙌🏻

  • @sky.digitalmedia2732
    @sky.digitalmedia2732 Před 3 měsíci +1

    Sir, you teach in such a way which make any complex topic very easy
    💯💯💯💯

  • @devilislive8134
    @devilislive8134 Před 4 měsíci

    Bro you are really helping students a lot in such simple answers

  • @VishalMudgal-it9qy
    @VishalMudgal-it9qy Před 3 měsíci

    mast samjhate ho sir , Ek baar m samjh aa ja rha h 😁😁

  • @xedose7183
    @xedose7183 Před 4 měsíci

    Great explanation along with examples on OOPS concepts.

  • @sufiyanpatel6241
    @sufiyanpatel6241 Před 13 dny

    Perfect Teaching... Clear OOPs concept in python....

  • @farooqaziz3738
    @farooqaziz3738 Před 26 dny

    Sir mai python oops ki wajah se interview crack nhi saka
    Lekin aapke video dekhne ke baad mujhe oops ke all concept clear ho Gaye
    Thanks for sharing this useful knowledge

  • @abhaymalvi5458
    @abhaymalvi5458 Před 4 měsíci +1

    Best OOPs video on CZcams!! 🔥

  • @jesussheepakash9289
    @jesussheepakash9289 Před 5 měsíci

    thank you sir , poora concept clear ho gya

  • @dysproghoul
    @dysproghoul Před měsícem

    this is was perfect rather than those basic generic oops videos
    this covered most of the things

  • @subratkumarnayak2560
    @subratkumarnayak2560 Před měsícem

    really loved it, thank you sir

  • @aparnapradhan0198
    @aparnapradhan0198 Před 5 měsíci +1

    Good explanation , good example 🎉🎉🎉🎉❤❤❤❤

  • @maxman95110
    @maxman95110 Před 13 dny

    Jabardast starting sir

  • @Ashish_00900
    @Ashish_00900 Před 5 měsíci

    Thank You Hitesh Bhaiya !!!

  • @SIR_Studios786
    @SIR_Studios786 Před 5 měsíci

    good explanation with examples, c++, c# etc language used preface like private, public, static etc, but in python underscores and decorators play such roles.

  • @siddhant2943
    @siddhant2943 Před měsícem

    I already knew objected oriented programming concepts in C++ and Java, it is amazing to see how different languages always come with something new to offer, this pointer in C++, super() method in java, @property decorator in python.

  • @the.ideal.indian
    @the.ideal.indian Před měsícem

    Thank you for your dedication to sharing your knowledge and for creating such high-quality content. Your efforts are truly appreciated and have made a significant impact on my learning journey.

  • @muhammadhassanalvi3422
    @muhammadhassanalvi3422 Před 4 měsíci

    Great video to start OPP concepts

  • @akshitgoel6492
    @akshitgoel6492 Před 2 měsíci

    Really nice content sir !!!

  • @mdnozibuddowla4085
    @mdnozibuddowla4085 Před měsícem

    agar mein is video full dekhne ki baad oop sikh jate hein to meri jitni bhi gmail account hein o sab se aap ki account ko subscribes karenge. because I am learning coding from 2016 se. abhi bhi oop mein bohot sari problems ate rehte hein. video dekhna start kari rahi hu.hope for the best

  • @ayushmishra5861
    @ayushmishra5861 Před 5 měsíci

    great video, loved it.

  • @user-iv9zj7ld8x
    @user-iv9zj7ld8x Před 15 dny +1

    Complete oop concept thanks sir ♥️♥️

  • @asifquasmi4538
    @asifquasmi4538 Před 4 měsíci

    Nice explanation sirji

  • @vardanshprasad5801
    @vardanshprasad5801 Před 5 měsíci +1

    Sir apka English Bahut accha hai free codecamp pe dekha hai

  • @ascodes3461
    @ascodes3461 Před 15 dny

    you're amazing man and your content is too 😍

  • @MDFAIZANSARI
    @MDFAIZANSARI Před 5 měsíci

    Delivery of topics are very creative.

  • @rushikeshmodi4870
    @rushikeshmodi4870 Před 3 měsíci

    Thank you sir. For such informative video

  • @ashutoshshrivastava9663
    @ashutoshshrivastava9663 Před 4 měsíci

    Good work.
    Commented to meet your goal
    It's good that you talked about this topic.
    Disappointed with 'self' explanation.

  • @thatone.nerdguy
    @thatone.nerdguy Před 7 dny

    I've been watching series fr last 7 days this has been best course, ab mujhe OOPs relatable lagne lga h - 1 August 2024

  • @stayqurious
    @stayqurious Před 5 měsíci +1

    loved your videos sir

  • @rinitroy4551
    @rinitroy4551 Před měsícem

    nice way to demostrate concept using questions

  • @vishalrathore7052
    @vishalrathore7052 Před 3 měsíci

    love your teaching style

  • @suryaa_tycoons4455
    @suryaa_tycoons4455 Před 2 dny

    Hats off sir no one teaching like this

  • @shubhamgurjar912
    @shubhamgurjar912 Před 5 měsíci

    what a video litterly love you bhaiya🥰🥰

  • @AmritKumar-sk8jo
    @AmritKumar-sk8jo Před měsícem

    nice explanation!!

  • @sudhanshushekhar1116
    @sudhanshushekhar1116 Před 3 měsíci

    I am trying to understand this concept since many months. Now it's clear. Thanks!
    could you please teach some project on basis of oops?

  • @pranaypaul6361
    @pranaypaul6361 Před 5 měsíci +2

    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++.
    In Python, static methods are declared using the `@staticmethod` decorator, which specifies that the method should be treated as a static method. However, static methods in Python are not truly bound to the class itself. Instead, they are bound to the class's namespace, which is the same namespace that contains the class's other attributes and methods.
    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!

    • @priyeshsingh7586
      @priyeshsingh7586 Před 5 měsíci

      Just thinking what will be a production scenario where static method can be used by both Class and instance of the class as described above.

    • @M_Abdul1ah
      @M_Abdul1ah Před měsícem

      Scrolling through the comments to find someone discussing this… and here you are, brother.♥️

  • @Abhay_Pandey_1
    @Abhay_Pandey_1 Před 5 měsíci

    Best python series on yt in hindi.

  • @user-fl5xj3pp1y
    @user-fl5xj3pp1y Před 5 měsíci

    very informative and you expalined it in such nice way ... love from Afghanistan...❤

  • @karnrkyt
    @karnrkyt Před měsícem

    10 questions are the best way to teach and learn. maza aa rha hai ish series m😊 great content @hitesh sir

  • @smitesh0410
    @smitesh0410 Před 5 dny

    Great explanation !

  • @Waleedkkhan594
    @Waleedkkhan594 Před 5 měsíci

    Thank you for the valuable content 🙏🙏🙏

  • @Zeeshantariqpkn
    @Zeeshantariqpkn Před 2 měsíci

    Method of teaching so perfect with real time examples, can in django series create a video on creating user wiith rights no one created on it yet.

  • @user-fc7mm2hx5z
    @user-fc7mm2hx5z Před měsícem

    BRO LITERALLY THANK YOU FROM THE CORE OF MY HEEART

  • @iyiwarrior5457
    @iyiwarrior5457 Před 5 měsíci

    Awesome work sir

  • @AvadhutPatil-i7v
    @AvadhutPatil-i7v Před 7 dny

    Best OOP's video I ever watch!

  • @khulvemeenakshi
    @khulvemeenakshi Před 2 měsíci

    Amazing series 👏

  • @Haha1234-z7f
    @Haha1234-z7f Před 19 dny

    When you are removing the self from general description at 50 min that time you by mistake your removed self of fuel type in ElectricCar class not major issue just giving a good feedback. Love you sir you are great !!!

  • @sagar-tt4ub
    @sagar-tt4ub Před 5 měsíci

    Congratulations on 200K hitesh sir