What is the output of following code? from abc import ABC, abstractmethod class A(ABC): @abstractmethod def m1(): print('In class A.') a = A() a.m1()

Questions & AnswersCategory: Programming LanguageWhat is the output of following code? from abc import ABC, abstractmethod class A(ABC): @abstractmethod def m1(): print('In class A.') a = A() a.m1()
Adam asked 3 years ago

What is the output of following code?

from abc import ABC, abstractmethod

class A(ABC):

    @abstractmethod

    def m1():

        print('In class A.')

a = A()

a.m1()

 
a. AbstratError
b. TypeError
c. ClassError
d. In class A