0 votes
in Python by
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):

    @staticmethod

    def m1(self):

        print('In class B, Method m1.')

b = B()

B.m1(b)

a) In class B, Method m1.  

b) TypeError

c) In class A, Method m1.

d) AttributeError

1 Answer

0 votes
by

a) In class B, Method m1.  

Related questions

0 votes
asked Aug 22, 2022 in Python by Robindeniel
0 votes
asked Aug 22, 2022 in Python by Robindeniel
...