Can someone tell me what is the different between default_age and self.default_age?
Only one default_age variable is created for all instance of class Student and self.default_age means very instances of class Student gets a variable default_age?
How do you specify a static class(singleton class) in python?
class Student:
default_age = 20 # base class variable
def __init__(self, age):
self.default_age = age