Inheritance in Java
- Inheritance is a mechanism in which on object acquires all the properties and behaviors of parent object
- For method Overriding(so runtime polymorphism can be achieved)
- For code reusability
1. Example
2. Why multiple inheritance is not supported in java?
- To reduce the complexity and simplify the language
'Back-End > Java_1' 카테고리의 다른 글
[Java] Method Overriding (0) | 2016.08.24 |
---|---|
[Java] Aggregation in java (0) | 2016.08.23 |
[Java] Input by Console (0) | 2016.08.23 |
[Java] Input by BufferedReader (0) | 2016.08.22 |
[Java] Input by Scanner (0) | 2016.08.18 |