Untitled

mail@pastecode.io avatar
unknown
python
2 months ago
230 B
1
Indexable
Never
class A():
    def emp(self):
        print("works")
class B():
    def salary(self):
        print("salary credited")
class C(A,B):
    def workhours(self):
        print("night shift")

ob=C()
ob.emp()
ob.salary()
ob.workhours()
Leave a Comment