<prompt> Kuzalisha mfano wa darasa urithi hierarchy.  <response>: Here is an example of a class inheritance hierarchy:pythonclass Vehicle: def __init__self, make, model, year: self.make make self.model model self.year year def honkself: printHonk honk! def __str__self: return .formatself.year, self.make, self.modelclass CarVehicle: def __init__self, make, model, year, num_doors 4: super.__init__make, model, year self.num_doors num_doors def honkself: super.honk printBeep beep! def __str__self: return super.__str__ with doors.formatself.num_doorsclass FlyingCarCar: def __init__self, make, model, year, num_doors 4, num_wings 2: super.__init__make, model, year, num_doors self.num_wings num_wings def flyself: printWeee, we are flying! def honkself: super.honk printNeowww! def __str__self: return super.__str__ and wings.formatself.num_wingsIn this example, we have a base class Vehicle, with attributes common to all vehicles like make, model, and year. The Vehicle class also has a honk method and a __str__ method to print out the vehicles information.The Car class inherits from Vehicle and adds an attribute for the number of doors, num_doors, and overrides the honk method to add an additional sound. The __str__ method is also overridden to include the number of doors when printing out the cars information.The FlyingCar class inherits from Car and adds an attribute for the number of wings, num_wings, and a fly method. The honk method is also overridden to add an additional sound, and the __str__ method is overridden to include the number of wings when printing out the cars information.This is an example of a class inheritance hierarchy, where each derived class inherits 