From d139504dde28c821b3e2e9a34e074d130c073231 Mon Sep 17 00:00:00 2001 From: OleksandrDraha <79225501+OleksandrDraha@users.noreply.github.com> Date: Wed, 20 Nov 2024 07:09:06 +0200 Subject: [PATCH] Update oop.md (#123) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like there is an inconsistency between examples of paragraphs ("инкапсуляция" and "наследование") as AbstractPhone class was not defined but was inherited by WirelessPhone class (and another following classes) with overriding of methods call() and ring() --- oop.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oop.md b/oop.md index baa3e7b..8464512 100644 --- a/oop.md +++ b/oop.md @@ -50,11 +50,11 @@ __Инкапсуляция__ – это свойство системы, поз Пример: ```java -public class SomePhone { +public class AbstractPhone { private int year; private String company; - public SomePhone(int year, String company) { + public AbstractPhone (int year, String company) { this.year = year; this.company = company; }