class Cat:
    family='Feline'                 #class attribute(data attribute)
    def __init__(self,name):        #class attribute(class method)   ALSO CALLED CONSTRUCTOR!!!
        self.name=name

c1=Cat('Patches')
c2=Cat('Tiger')

#class variable
print('c1.family = ',c1.family) #shared by all instance objects of the Cat class
print('c2.family =',c2.family)  #shared by all instance objects of the Cat class



print(c1.name)
c2.skill='catch mice'
print(c2.skill)

c2.nista='nista'
print(c2.nista)
0beba31964c72248323979f2ea9910a43970eb35
class Cat:
    <mask token>

    def __init__(self, name):
        self.name = name


<mask token>

class Cat:
    family = 'Feline'

    def __init__(self, name):
        self.name = name


<mask token>

class Cat:
    family = 'Feline'

    def __init__(self, name):
        self.name = name


<mask token>
print('c1.family = ', c1.family)
print('c2.family =', c2.family)
print(c1.name)
<mask token>
print(c2.skill)
<mask token>
print(c2.nista)

class Cat:
    family = 'Feline'

    def __init__(self, name):
        self.name = name


c1 = Cat('Patches')
c2 = Cat('Tiger')
print('c1.family = ', c1.family)
print('c2.family =', c2.family)
print(c1.name)
c2.skill = 'catch mice'
print(c2.skill)
c2.nista = 'nista'
print(c2.nista)

class Cat:
    family='Feline'                 #class attribute(data attribute)
    def __init__(self,name):        #class attribute(class method)   ALSO CALLED CONSTRUCTOR!!!
        self.name=name

c1=Cat('Patches')
c2=Cat('Tiger')

#class variable
print('c1.family = ',c1.family) #shared by all instance objects of the Cat class
print('c2.family =',c2.family)  #shared by all instance objects of the Cat class



print(c1.name)
c2.skill='catch mice'
print(c2.skill)

c2.nista='nista'
print(c2.nista)