first commit

This commit is contained in:
Boris
2024-01-15 20:14:10 +00:00
commit 8c81ee28b7
3106 changed files with 474415 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/**
* Class Car - nonsense class for debugger demo
*
* @author Michael Kolling
* @version 13 August 1999
*/
public class Car
{
private int numberOfFrontSeats;
private int numberOfBackSeats;
/**
* Create a car with seat numbers
*/
public Car(int frontSeats, int backSeats)
{
numberOfFrontSeats = frontSeats;
numberOfBackSeats = backSeats;
}
/**
* Return the number of seats in the car.
*/
public int seats()
{
int totalSeats;
totalSeats = numberOfFrontSeats;
totalSeats += numberOfBackSeats;
return totalSeats;
}
}