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):

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

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below c r ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!