λFPAI
Practice/Ride-Sharing App (Uber-like)

Ride-Sharing App (Uber-like)

Hard

Create a Vehicle hierarchy (Car, Bike, Van), plus Driver, Rider, and Ride.

Implement fare calculation with polymorphism based on vehicle type and distance.

Add matching logic.

OOP Focus: Advanced polymorphism plus composition.

Note: This is statement-only in the current Practice version; stdout should be empty.

Loading editor...

Output

Run or submit to see output.