What is the output of the following code? from abc import ABC, abstractmethod class A(ABC): @abstractmethod def m1(self): print('In class A, Method m1.') class B(A): def m1(self): print('In class B, Method m1.') class C(B): def m2(self): print('In class C, Method m2.') c = C() c.m1() c.m2()
What is the output of the following code?
from abc import ABC, abstractmethod class A(ABC): @abstractmethod def m1(self): print('In class A, Method m1.') class B(A): def m1(self): print('In class B, Method m1.') class C(B): def m2(self): print('In class C, Method m2.') c = C() c.m1() c.m2()
a. In class B, Method m1.
In class C, Method m2.
b. In class A, Method m1.
In class C, Method m2.
c. In class A, Method m1.
In class B, Method m1.
d. TypeError