강의

멘토링

커뮤니티

Inflearn Community Q&A

shlee707's profile image
shlee707

asked

Do it! Introduction to Java Programming with Eun Jong

Classes and Objects 1 (4)

접근제어자 public과 default의 차이점이 뭔가요?

Written on

·

197

0

default로 아무것도 안쓰면 같은 패키지 내에서 사용 가능하다고 했고

public으로 하면 다른 클래스에서도 쓸 수 있다고 말씀하셨는데

결국 public도 같은 패키지 내의 클래스 들에서만 사용 가능한 것 아닌가요??

차이점이 뭔가요?

java

Answer

This question is waiting for answers
Be the first to answer!
shlee707's profile image
shlee707

asked

Ask a question