Question: Given the class below: class Cat: species = 'mammal' def _ init _ ( self , name, age ) : self.name = name self.age =

Given the class below:
class Cat:
species = 'mammal'
def _init_(self, name, age):
self.name = name
self.age = age
a) Instantiate the Cat object with 3 cats
b) Create a function ( a function and NOT a class method) that finds the oldest cat 3 marks
c) Print out: "The oldest cat is x years old.". x will be the oldest cat age by using the function in #2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!