Inheritance in python

Inheritance is also supported in python and the syntax is simple as like the following example.

>>> class parentClass:
...   var1 = "first"
...   var2 = "second"
...
>>> class childClass(parentClass):
...   pass
...
>>> parentobject = parentClass()
>>> parentobject.var1
'first'
>>> parentobject.var2
'second'
>>> childObject = childClass()
>>> childObject.var1
'first'
>>> childObject.var2
'second'
>>>