upload lab4

This commit is contained in:
BadOfficer 2023-05-17 14:03:20 +03:00
parent 0c4e5d3e89
commit a39494a9c8
1 changed files with 5 additions and 5 deletions

View File

@ -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;