OnlineGDB: LINK PythonOnline: LINK A zoo needs a system to…
OnlineGDB: LINK PythonOnline: LINK A zoo needs a system to keep track of different types of animals and their specific characteristics. As a Python developer, you need to create classes using inheritance to manage this information. Write a parent class Animal that has the following specifications: def __init__(self, name, species, age) – Constructor to initialize the Animal with a name, species, and age def make_sound(self) – prints “{name} makes a sound.” def get_info(self) – prints “{name} is a {age}-year-old {species}.” Then, create two subclasses: Mammal (inherits from Animal): def __init__(self, name, species, age, fur_color) – Constructor that calls the parent constructor and adds fur_color attribute def make_sound(self) – Override to print “{name} roars!” def get_info(self) – Calls the parent’s get_info() method, then prints an additional line: “Fur color: {fur_color}” Bird (inherits from Animal): def __init__(self, name, species, age, wingspan) – Constructor that calls the parent constructor and adds wingspan attribute (in meters) def make_sound(self) – Override to print “{name} chirps!” def get_info(self) – Calls the parent’s get_info() method, then prints an additional line: “Wingspan: {wingspan} meters” Example usage lion = Mammal(“Leo”, “Lion”, 5, “Golden”)lion.get_info()lion.make_sound()# Output:# Leo is a 5-year-old Lion.# Fur color: Golden# Leo roars!parrot = Bird(“Polly”, “Macaw”, 3, 0.9)parrot.get_info()parrot.make_sound()# Output:# Polly is a 3-year-old Macaw.# Wingspan: 0.9 meters# Polly chirps!