Python OOP: Classmethod & Staticmethod

preview_player
Показать описание
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.

Enjoy the video.

____________________

Hmm, I wonder where these links takes us :

____________________

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:

Drop us a Feedback:
Рекомендации по теме