Coder Social home page Coder Social logo

online-car-rental-system's Introduction

Online-Car-Rental-System

Username: admin Password: 123

A car rental is a vehicle that may be rented for a price and utilized for a specific amount of time. Getting a rental automobile makes it easier for people to travel around when they don't have access to their own vehicle or don't own one at all. A person who needs transportation must call a rental car company and sign a contract. This method improves client retention while also making car and employee management more straightforward.

We have created a web-based system that allows consumers to register and reserve automobiles online while also allowing the firm to manage its car rental business efficiently in order to make the process of renting an automobile easier for consumers.

-> Tools and Frameworks Used:

Swing

Java Swing is part of Java Foundation Classes. It is used to create window-based applications which makes it suitable for developing lightweight desktop applications. Java Swing is built on top of an abstract windowing toolkit API purely written in Java programming language.

Netbeans

NetBeans IDE is a free and open source integrated development environment for application development on Windows, Mac, Linux, and Solaris operating systems. The IDE simplifies the development of web, enterprise, desktop, and mobile applications that use the Java and HTML5 platforms.

Java Abstract Window Toolkit

Abstract Window Toolkit (AWT) is a set of application program interfaces ( API s) used by Java programmers to create graphical user interface ( GUI ) objects, such as buttons, scroll bars, and windows. AWT features include: A set of native user interface components. A robust event-handling model. Graphics and imaging tools, including shape, color, and font classes.

Database:

We are storing the data in .ser files

.ser files are mainly used to store serialized objects of a Java program. They also store metadata such as timestamps. They are used to store the objects after the program is terminated.

Java object Serialization is an API provided by Java Library stack as a means to serialize Java objects. Serialization is a process to convert objects into a writable byte stream. Once converted into a byte-stream, these objects can be written to a file. The reverse process of this is called de-serialization.

A Java object is serializable if its class or any of its superclasses implement either the java.io.Serializable interface.

The objects can be converted into byte-stream using java.io.ObjectOutputStream. In order to enable writing of objects into a file using ObjectOutputStream, it is mandatory that the concerned class implements Serializable interface as shown in the class definition below.

Reading objects in Java are similar to writing object using ObjectOutputStream and ObjectInputStream.

-> Design Principles and Design Patterns Applied

Single Responsibility Principle:

Each class should be responsible for a single part or functionality of the system. We have defined seperate classes for each functionality.

Open-Closed Principle:

In CarOwner.Java file, public class CarOwner extends Person implements Serializable. Hence it is open for extension.

Decorator Design Pattern:

Decorator design pattern is used to modify the functionality of an object at runtime. At the same time other instances of the same class will not be affected by this, so individual object gets the modified behavior. Suppose we want to implement different conditions of cars โ€“ we can create interface Car to define the assemble method and then we can have a Basic car, further more we can extend it having different conditions like Excellent, Good, Average and Bad.

online-car-rental-system's People

Contributors

r-ritvik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.