Object Oriented Design with Java
렉쳐 4 리뷰
Alyce
2015. 11. 8. 10:58
<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!