namemaruti price example example of inheritance using constructor class vehicle#parent class def __init__(self,name,price)self name=name self price=price def display(self)print("name",self nameclass category(vehicle)drived class def __init__(self,name,price)vehicle __init__(self,name,price#pass data to base constructor def disp_price(self)print("price",self pricecar =category("maruti", car display(car disp_price(