Back to Browse

Python OOP: Classmethod & Staticmethod

79 views
Nov 15, 2021
15:37

So far, we have dealt with the basic methods, which automatically take in objects as the first arguments. In Python, there do exist other methods. In this video, we will cover classmethods and staticmethods. Classmethods take in class as the first argument by default. These methods are very useful to set / initialize class variables and even can act as alternative constructors. Staticmethods, on the other hand, take no first argument by default. They are used to create some sort of logical implementations that does not require to take in class or instance as the first argument. Python Decorators: https://youtu.be/X2Jq5XPTYKk Python Strings: https://youtu.be/J6D9_Ktt0Mg Enjoy the video. ____________________ Hmm, I wonder where these links takes us : Download Python from: https://www.python.org Visit our Website: https://www.zbunker.in Python Playlist: https://bit.ly/python-playlist-beginners YouTube Channel: http://bit.ly/zbunker-channel ____________________ ZBunker is a community that is run by a bunch of university students with strong grasp on computer science fundamentals. The channel will walk you through some of the popular programming languages and how you can develop a skill set in this tech domain. We strive to provide free and quality education for all. We firmly believe that open source is the way forward. So, by making these videos, we are encouraging and empowering you to do open source contributions and give back to the community. We are learners. We are coders. Let's make an impact. ____________ WE NEED YOUR SUPPORT ______________ We strive to make education free 4 all. We would love to share this to as many audiences as possible. This won't be possible without your support. So, if you liked our videos, kindly consider subscribing to our channel. Support us on: YouTube Channel: http://bit.ly/zbunker-channel Website: https://www.zbunker.in Drop us a Feedback: [email protected]

Download

0 formats

No download links available.

Python OOP: Classmethod & Staticmethod | NatokHD