This repository contains the code for a simple car rental system implemented in Java. It includes several Java classes that work together to manage car rentals, customers, and rental records.
The Car.java
file contains the class definition for the Car
object. This class represents a car that can be rented in the system. It includes properties such as the car's make, model, year, and rental status. It also provides methods to get and set these properties.
The Main.java
file contains the main entry point for the car rental system. It provides a simple command-line interface for users to interact with the system. Users can perform actions such as renting a car, returning a car, and viewing rental records.
The Person.java
file contains the class definition for the Person
object. This class represents a person who can rent a car in the system. It includes properties such as the person's name, contact information, and rental history. It also provides methods to get and set these properties.
The Rent.java
file contains the class definition for the Rent
object. This class represents a car rental transaction in the system. It includes properties such as the rented car, the renting person, and the rental duration. It also provides methods to get and set these properties.
The RentRecord.java
file contains the class definition for the RentRecord
object. This class represents a record of a car rental in the system. It includes properties such as the rental ID, the rented car, the renting person, the rental start date, and the rental end date. It also provides methods to get and set these properties.
If you would like to contribute to this project, you can follow these steps:
- Fork the repository on GitHub.
- Clone the forked repository to your local machine.
- Create a new branch for your changes.
- Make your modifications or add new features.
- Test your changes to ensure they work correctly.
- Commit your changes and push them to your forked repository.
- Submit a pull request to the original repository, describing your changes in detail.
Please make sure to adhere to the existing coding style and conventions used in the project. Also, ensure that your changes are well-documented and accompanied by appropriate test cases.
We appreciate any contributions, including bug fixes, new features, and improvements to the existing codebase.
If you have any questions or suggestions regarding this project, you can contact the project maintainers at johnrhuell@gmail.com.
Thank you for your interest in this car rental system!