Polymorphism
• Code that works for objects of type ‘A’ should
also work for objects of types derived from ‘A’
• If it quacks like a duck and waggles like a duck,
it’s a duck
• Code that works for objects of type ‘A’ should
also work for objects that behave like ‘A’