Payment
timor
java
4 years ago
831 B
6
Indexable
public class Payment {
private int day;
private int licensePlate;
private String name;
private double amount;
/**
* constructor
* @param day
* @param licensePlate
* @param name
* @param amount
*/
public Payment(int day, int licensePlate, String name, double amount) {
this.day = day;
this.licensePlate = licensePlate;
this.name = name;
this.amount = amount;
}
/**
* copy constructor
* @param other - a payment to copy
*/
public Payment(Payment other) {
day = other.day;
licensePlate = other.licensePlate;
name = other.name;
amount = other.amount;
}
public int getDay() {
return day;
}
public int getLicensePlate() {
return licensePlate;
}
public String getName() {
return name;
}
public double getAmount() {
return amount;
}
}
Editor is loading...