Skip to content

This code contains a Java class called Samochod that models a car.

Notifications You must be signed in to change notification settings

Areeks/Car-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Car Management

This code contains a Java class called Samochod that models a car. The class includes fields such as car brand, model, mileage, fuel, fuel consumption, and maximum fuel tank capacity. It also includes getters and setters for all of these fields, as well as methods for reading in car information from the user, printing out car information, and initializing car information. Additionally, there is a method for refueling the car.

Getting Started

These instructions will help you use the code in your own Java projects.

Prerequisites

You will need to have a Java development environment set up on your computer to use this code.

Installing

To use the Samochod class in your Java projects, simply copy the code into a .java file in your project.

Usage

The Samochod class can be used to create objects that represent cars. The default constructor creates a car with default information, while the overloaded constructor can be used to specify information about the car. The Wczytaj method can be used to read in information about the car from the user, and the Wypisz method can be used to print out information about the car. The Inicjalizuj method can be used to initialize the car's information, and the Tankuj method can be used to refuel the car.

Contributing

If you would like to contribute to this code, feel free to open a pull request on GitHub.

Author

The original author of this code is Areeks.

License

This code is open source and available under the MIT License.

About

This code contains a Java class called Samochod that models a car.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages