Inflearn Community Q&A
역할과 구현
Written on
·
201
0
역할과 구현 분리의 장점은
특정 역할의 구현 부뷴이 바뀌어도 쉽게 갈아끼울 수 있는 게 맞나요?
예를 들어, DB 인터페이스를 하나 만든다고 할 때
오라클, MySQL, h2를 만들어놓고 DB 종류가 바뀔 때마다
쉽게 갈아끼우는 것이라고 생각하면 되나요?
oopspring
Quiz
46% of people got it wrong. Give it a try!
What is the main reason for designing by separating roles (interfaces) from implementations (classes) in object-oriented design?
To reduce the number of lines of code
To flexibly cope with future requirement changes
To speed up program execution
To facilitate database connection





