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:
parent
f335ccd4c9
commit
d139504dde
4
oop.md
4
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue