As far as I understand, in Python methods of parent class are overridden. So all class methods are virtual by default as can be seen from the code below.
class Parent(object):
def Method1(self):
print 'FOO'
class Child(Parent):
def Method1(self):
print 'BAR'
myInstance = Child()
#Overridden method is called
myInstance.Method1() # BAR
#Is it possible to do the following?
myInstance.{something} # FOO
QUESTIONS:
Is it possible to call parent method
Parent.Method1()
from the instancemyInstance
of the child class?Is it possible to make
def Parent.Method1(self)
not to be overridden by a method with the same name, but some different set of argumentsdef Child.Method1(self,x,y)
?