Initializing Class Variables using methods in Python (Python Tutorial - Part 45)

preview_player
Показать описание

In this session, I have practically demonstrated initializing class variables using methods in Python.
Рекомендации по теме
Комментарии
Автор

What you have shown is instance variable not class variable

debasish
Автор

Let’s say def initialization_method called an sql query, would it be possible to initialize the class members using the db results and for simplicity :- only pass one argument to the initialization_method -> (this_recordNumberArgument).. ?

StarChild.no