Multiple Inheritance

class A :
     def method_a(self):
         print("method of class A")


class B:
    def method_b(self):
        print("method of class B")

class C(A,B):
    def method_c(self):
        print("method of class C")

c_object =C()
c_object.method_c()
c_object.method_a()
c_object.method_b()

Leave a Reply