Question: python Q2. a) Define two classes, called Dog and Cat, which have the same 3 methods including the contstuctor. After defining the classes, create two
python

Q2. a) Define two classes, called Dog and Cat, which have the same 3 methods including the contstuctor. After defining the classes, create two objects then write a for loop to obtain the following output: (15 points) Meow I am a cat. My name is Kitty. I am 2.5 years old. Meow Bark I am a dog. My name is Fluffy. I am 4 years old. Bark Hint: The Method names, other than the constructor, can be make_sound and info methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
