Skip to content

Commit d139504

Browse files
Update oop.md (enhorse#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()
1 parent f335ccd commit d139504

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

oop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ __Инкапсуляция__ – это свойство системы, поз
5050

5151
Пример:
5252
```java
53-
public class SomePhone {
53+
public class AbstractPhone {
5454

5555
private int year;
5656
private String company;
57-
public SomePhone(int year, String company) {
57+
public AbstractPhone (int year, String company) {
5858
this.year = year;
5959
this.company = company;
6060
}

0 commit comments

Comments
 (0)