What will be the outcome of the following code? class An…
What will be the outcome of the following code? class Animal(object): def __init__(self, name): self.name = name def __str__(self): return self.name class Cat(Animal): def sound(self): print (“Meoww”) c = Cat(‘Kittie’) #Cat object c.sound()
Read Details