Q82
What will be the output of the following Python code? class Demo: def check(self): return " Demo's check " def display(self): print(self.check()) class Demo_Derived(Demo): def check(self): return " Derived's check " Demo().display() Demo_Derived().display()
A.
Demo's check Derived's check
AnswerB.
Demo's check Demo's check
C.
Derived's check Demo's check
D.
Syntax error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board