Python Class Inheritance || Example-2 || Multiple Inheritance || Python
In this we are going to see a basic example of multiple inheritance part 2 in Python Programming Language.



class Cat:
    def ceats(self):
        print("Cat eats Fish")

class Dog:
    def deats(self):
        print("Dog eats Meat")

class Food(Dog,Cat):
    def eats(self):
        print("Some Food")

f = Food()
f.eats()
f.ceats()
f.deats()

# Coded by SAAHIL


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post