Concepts of Object Oriented Paradigm
Contents
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
- Clarification
- List use cases(APIs)
- Prioritize
- Define classes(data + action) and their relationship(Association, Aggregation, Inheritance)
- Optimize design with basic concepts
- abstraction
- ancapsulation
- inheritance
- polymorphism
- design pattern
- others
- enum
- generics
- comparable/comparator
- eager/lazy computation
- iterator
- …
- Coding
- Test