Your question is Class Inheritance with Print Description. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
NetApp fleet tooling represents transport assets used to support infrastructure operations. Implement a class hierarchy with a base Vehicle class and specialized Car and Plane subclasses. Each class must provide a Print_description method that returns a formatted description.
Implement build_descriptions(vehicles), which receives vehicle records and returns descriptions in the same order. The function must instantiate the appropriate class based on the record's type field and use polymorphism to call Print_description without checking the subclass after construction.
vehicles, a list of dictionaries. Every dictionary contains type and name.vehicle record has no additional fields.car record contains integer doors.plane record contains numeric wingspan.def build_descriptions(vehicles):