Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITEM 38. 확장할 수 있는 열거 타입이 필요하면 인터페이스를 사용하라 #66

Open
dolly0920 opened this issue May 2, 2021 · 0 comments
Assignees
Labels
Assignment Something to submit

Comments

@dolly0920
Copy link
Owner

상위 인터페이스를 영상매체(Media)로 하여 영상 매체와 관련된 Enum 클래스들을 정의해봅시다.
인터페이스에는 display 메소드를 정의하여 각각의 enum 클래스에서 적절한 결과값이 출력될 수 있도록 합시다.
display메소드의 return값은 (enum타입(영화, 예능, 드라마 등) :: 제목) 형태로 되도록 만드시면 됩니다.
(ex) (영화 : 표적) => (enum클래스 : 제목) = (Movie : Target)

@dolly0920 dolly0920 added the Assignment Something to submit label May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Assignment Something to submit
Projects
None yet
Development

No branches or pull requests

4 participants