This is the lesson number 07 of the lesson series on Object Oriented Programming (OOP) in Python. It will be a complete course with the aim is to cover almost everything needed in Object Oriented Programming.
In this lesson we create class method and the static method. We have already seen and used instance methods and this video covers other two types of methods.
Link to complete playlist:
• Object-Oriented Programming in Python
Lesson Code:
https://github.com/MAN1986/OOP-in-Pyt...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Review Questions of the Lesson
1. Create a method named as regStds that must return the list of students registered in the subject (only one subject) provided as input argument. Decide whether it should be an instance method, class method or static method. Display a sample output.
2. In a class method can we use the name of input argument other than cls ? If yes, should we use some other name?
#OOP #ObjectOrientedProgramming #Python
Nesta página do site você pode assistir ao vídeo on-line Lesson-07 | Class Method & Static Method | [OOP in Python] duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Learning Orbis 22 Junho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,424 vezes e gostou 59 espectadores. Boa visualização!