I have a multiple classes in python i.e class a, class b, class c, class d and class d in inheriting the class a,class b, class c and class a, class b, class c having a method m1() then I want to access only the method of class b then how can I access this method?? plz reffer following code.
class a:
def m1(self):
print("Class A method m1")
class b:
def m1(self):
print("Class B method m1")
class c:
def m1(self):
print("Class C method m1")
class d(a,b,c):
def m2(self):
print("Class D method m1")
b().m1()
o1 = d()
o1.m1()