The Final Challenge
Test your understanding of OOP with a challenge.
We'll cover the following...
We’ve built Chirpy, explored object-oriented programming (OOP) principles, and learned how to structure a fully interactive system using classes, objects, inheritance, polymorphism, composition, encapsulation, and more.
But now, it’s time to put your skills to the test!
Challenge: Vehicle rental system
It’s time for you to design a vehicle rental system for a company that rents out cars, motorcycles, and trucks.
Press + to interact
Your system should:
Allow customers to rent and return vehicles with a default rental period (7 days).
Enforce special conditions (e.g., trucks require a truck license). ...