# you will learn more about superclass and subclass

print("Hello let's start the class")

class parents:
    var1 = "one"
    var2 = "two"
    
class child(parents):
#    var1 = "one"
#    var2 = "two" 
    
    var2 = "three"



    
obj = parents()
cobj = child()

print(obj.var1)
print(obj.var2)
print(cobj.var1)
print(cobj.var2)

 


8e355cfba4352595eef17b9f984ce0041efa2a0c
<mask token>


class parents:
    <mask token>
    <mask token>


class child(parents):
    var2 = 'three'


<mask token>

<mask token>


class parents:
    var1 = 'one'
    var2 = 'two'


class child(parents):
    var2 = 'three'


<mask token>

print("Hello let's start the class")


class parents:
    var1 = 'one'
    var2 = 'two'


class child(parents):
    var2 = 'three'


<mask token>
print(obj.var1)
print(obj.var2)
print(cobj.var1)
print(cobj.var2)

print("Hello let's start the class")


class parents:
    var1 = 'one'
    var2 = 'two'


class child(parents):
    var2 = 'three'


obj = parents()
cobj = child()
print(obj.var1)
print(obj.var2)
print(cobj.var1)
print(cobj.var2)

# you will learn more about superclass and subclass

print("Hello let's start the class")

class parents:
    var1 = "one"
    var2 = "two"
    
class child(parents):
#    var1 = "one"
#    var2 = "two" 
    
    var2 = "three"



    
obj = parents()
cobj = child()

print(obj.var1)
print(obj.var2)
print(cobj.var1)
print(cobj.var2)

 

