From a39494a9c81eb1f5236433ee9075e29a0a49bf1a Mon Sep 17 00:00:00 2001 From: BadOfficer Date: Wed, 17 May 2023 14:03:20 +0300 Subject: [PATCH] upload lab4 --- .../_02_Бондаренко_Тарас_Андрійович/lab4/Boat.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/IO_24/_02_Бондаренко_Тарас_Андрійович/lab4/Boat.java b/src/IO_24/_02_Бондаренко_Тарас_Андрійович/lab4/Boat.java index 1237be6..646dcbd 100644 --- a/src/IO_24/_02_Бондаренко_Тарас_Андрійович/lab4/Boat.java +++ b/src/IO_24/_02_Бондаренко_Тарас_Андрійович/lab4/Boat.java @@ -4,11 +4,11 @@ package IO_24._02_Бондаренко_Тарас_Андрійович.lab4; * Class that represents a boat with different characteristics. */ public class Boat { - private String name; - private int price; - private int mass; - private int age; - private String type; + private final String name; + private final int price; + private final int mass; + private final int age; + private final String type; public Boat(String name, int price, int mass, int age, String type) { this.name = name;