
Java & Kotlin
[JAVA] 다형성과 상속, 그리고 객체지향
1. 다형성과 상속에 대한 이해 Polymorphism in Java is the ability of an object to take many forms. To simply put, polymorphism in java allows us to perform the same action in many different ways. 다형성(Polymorphism)은 자바에서 한 객체가 여러 모습으로 기능할 수 있음을 의미합니다. OOP에서 핵심적인 역할을 수행하는 녀석이 다형성이라고 볼 수 있죠. 그리고 오늘 공부할 상속(Inheritance)는 어떻게 보면 다형성을 달성할 수 있도록 도와주는 녀석이라고 생각합니다. 그리고 상속을 공부하면서 나오는 메서드 오버라이딩(Method Overriding)이 한 객체..