강의

멘토링

커뮤니티

Inflearn Community Q&A

drcaesarclown1519's profile image
drcaesarclown1519

asked

Mastering Java Basics with Teacher Eun-jong (Do it! Introduction to Java Programming) - Part 1 (Basics)

Polymorphism and the reasons for using it

오버라이드 할때 @override 안적어도 되나요?

Written on

·

528

0

java객체지향

Answer 1

1

eunjong님의 프로필 이미지
eunjong
Instructor

안적어도 됩니다. 다만 메서드 명이나 매개변수가 다르게 했을때(오류로 타이핑하거나...) 재정의한 메서드로 인식하지 않게 됩니다. @override annotation을 쓰면 그런 오류일에 이클립스나 인텔리 제이에서 바로 체크가 됩니다

drcaesarclown1519's profile image
drcaesarclown1519

asked

Ask a question