Amazon interview question

Discuss classes, interfaces, and extensibility