Write a code for single inheritance in Python?
1 Answers
class A:
    def chetan1(self):
       print(“Chetan 1 working”)
    def chetan2(self):
       print(“Chetan 2 working”)
class B(A):
    def chetan3(self):
        print(“Chetan 3 working”)
    def chetan4(self):
        print(“Chetan 4 working”)
class C(B):
     def chetan5(self):
       print(“Chetan 5 working”)