Contents

Concepts of Object Oriented Paradigm

Theory

Modifier Class Package Subclass World
public Y Y Y Y
protected Y Y Y N
no modifier Y Y N N
private Y N N N

OOD interview step by step

  1. Clarification
  2. List use cases(APIs)
  3. Prioritize
  4. Define classes(data + action) and their relationship(Association, Aggregation, Inheritance)
  5. Optimize design with basic concepts
    • abstraction
    • ancapsulation
    • inheritance
    • polymorphism
    • design pattern
    • others
      • enum
      • generics
      • comparable/comparator
      • eager/lazy computation
      • iterator
  6. Coding
  7. Test