Question: Write a simple Python class named Pet Fish . The class has 3 attributes, name , breed , age , that should be defined and
Write a simple Python class named PetFish. The class has 3 attributes, name, breed, age, that should be defined and initialized in the constructor. Also, you are required to write a method named print that prints the attributes, one per row.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
