0 votes
in Python by
What is the output of the following code?

class A:

    @classmethod

    def m1(self):

        print('In Class A, Class Method m1.')

    def m1(self):

        print('In Class A, Method m1.')

a = A()

a.m1()

a)

In Class A, Class Method m1.

In Class A, Method m1.

b) In Class A, Method m1.

c) TypeError  

d) In Class A, Class Method m1.

1 Answer

0 votes
by

c) TypeError  

Related questions

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