class Base():
def __init__(self):
print("test")
def first_func(self):
print("first function call")
class Deriv(Base):
def __init__(self):
Base.__init__(self)
def first_func(self):
print("Test Derived")
C = Deriv()
C.first_func() # It gives output "Test Derived"
How can I call a first_func() method (output should be "first function call") from base class ( Class Base) using only object C and python 2.7 ?