Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 547 Bytes

File metadata and controls

4 lines (4 loc) · 547 Bytes

Class and objects

Write a python program using class and objects that incorporates data encapsulation, abstraction, polymorphism and inheritance

  • Develop a system to manage rental vehicles. Create classes for Vehicle, Car, Truck, and RentalAgency. Implement methods for renting vehicles, checking availability, and calculating rental charges based on vehicle type and rental duration.
  • Create classes for Restaurant, Menu, MenuItem, and Order. Implement methods for managing menus, adding items to orders, and calculating bills for customers.