Question: Given the code below, which call to the action method is correct? class ParentClass: def action(self): print(Method is not overridden') class ChildClass(ParentClass): def action(self):
Given the code below, which call to the action method is correct? class ParentClass: def action(self): print(Method is not overridden') class ChildClass(ParentClass): def action(self): print("Inside the child class) int main(): A) ParentClass(self).action() C) r = ChildClass() r.action() B) ChildClass(self).action().
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below c r ... View full answer
Get step-by-step solutions from verified subject matter experts
