blob: e879057d948b61018fe68a95607fbe579ddb749a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Introduction
## Interfaces
Abstract class used to define object API.
Classes can then implement this API.
```
public interface Car {
public void turn(blabla);
blabla;
}
```
### Polymorphism
Most general interface is Object (like golangs interface{} ? ).
## Encapsulations
Hide internal details.
This can be done with getters and setters.
These getters and setters can then be used to to input validation.
## Private vs protected
Protected are accessible to subclasses which inherit from it.
|