HF RL Explorer

Add Table Inheritance Pattern Example with Vehicle Hierarchy

Add Table Inheritance Pattern Example with Vehicle Hierarchy: a task in LegoFlow-SWE (Harbor dataset). The example must include an in‑memory persistence layer ( VehicleDatabase ) that simulates saving and retrieving vehicles. It should allow storing any Vehicle , retrieving a generic Vehicle by…

The task

The example must include an in‑memory persistence layer (`VehicleDatabase`) that simulates saving and retrieving vehicles. It should allow storing any `Vehicle`, retrieving a generic `Vehicle` by identifier, retrieving the concrete subtype (`Car` or `Truck`), and printing all stored vehicles.

Part of Lego-X/LegoFlow-SWE.