0 votes
in Python by

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

b) ClassError

c) AbstratError

d) In class A.

1 Answer

0 votes
by

a) TypeError 

Related questions

0 votes
asked Jan 18, 2021 in Python by SakshiSharma
+1 vote
asked Feb 15, 2021 in Python by SakshiSharma
...