upload lab4
This commit is contained in:
parent
0c4e5d3e89
commit
a39494a9c8
|
@ -4,11 +4,11 @@ package IO_24._02_Бондаренко_Тарас_Андрійович.lab4;
|
||||||
* Class that represents a boat with different characteristics.
|
* Class that represents a boat with different characteristics.
|
||||||
*/
|
*/
|
||||||
public class Boat {
|
public class Boat {
|
||||||
private String name;
|
private final String name;
|
||||||
private int price;
|
private final int price;
|
||||||
private int mass;
|
private final int mass;
|
||||||
private int age;
|
private final int age;
|
||||||
private String type;
|
private final String type;
|
||||||
|
|
||||||
public Boat(String name, int price, int mass, int age, String type) {
|
public Boat(String name, int price, int mass, int age, String type) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|
Loading…
Reference in New Issue