So I was trying some debugging prints and what i noticed the print statements within the child class are being executed even though I never call the class. Can someone explain why???
class Parent (object): def override(self): print ("Parent oveerride()") class Child (Parent): print ("Chlld enter >>>>>>") def override(self): print ('Son overwride ()') print ("Chlld exit <<<<<<") dad = Parent() #son = Child() dad.override() #son.override()
Chlld enter >>>>>>
Chlld exit <<<<<<