<Head first ooad chapter5 part 2>
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object
It is useful in bigger programs and in design patterns like factory pattern.
Mammal c = new Cat();
why do we use interfaces? Polymorphism!
Software thats getting more cohesive throughout the design life cycle!
'Object Oriented Design with Java' 카테고리의 다른 글
렉쳐 6 리뷰 (0) | 2015.11.08 |
---|---|
렉쳐 5 리뷰 (0) | 2015.11.08 |
렉쳐 3 리뷰 (0) | 2015.11.08 |
클래스 다이어그램 설명 펌 (0) | 2015.11.08 |
렉쳐 2 리뷰 (0) | 2015.11.08 |