OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING
WHAT IS OOP?
Imperative and Procedural Programming
Imperative and Procedural Programming
Imperative and Procedural Programming
main
Imperative and Procedural Programming
main
fun startTimer()
fun play()
Imperative and Procedural Programming
main
fun startTimer()
fun play()
fun init()
fun read()
fun start()
fun load()
fun read()
Imperative and Procedural Programming
main
fun startTimer()
fun play()
fun init()
fun read()
fun start()
fun load()
fun read()
data
data
data
Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
- template
- declare once
- no data
Object Oriented Programming
- template
- declare once
- no data
- instace of a class
- created many times using new keyword
- data in
Object Oriented Programming
Object Oriented Programming
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
4 CORE PRINCIPLES
모든 동물들은 소리를 낼 수 있지만,
사람이 내는소리와 고양이, 강아지가 내는 소리는 모두 다름!
이처럼 같은 인터페이스임에도 overriding을 통해
실제 구현되어 평가되는 요소를 변경할 수 있게 해준다