1
1
Fork 0

Update oop.md (#123)

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()
This commit is contained in:
OleksandrDraha 2024-11-20 07:09:06 +02:00 committed by GitHub
parent f335ccd4c9
commit d139504dde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

4
oop.md
View File

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