• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

자바API

Java 프로그래밍 : 객체지향 (2)

default : 같은 패키지 내 공개 하지만 게터 메소드(getter methods)와 세터 메소드(setter method)를 사용하면 비공개 필드에 우회적으로 접근해 private 필드를 반환(get) 하거나 변경(set) 할 수 있다. 하지만 private 접근제어자로 선언된 경우, 아래와 같이 게터 메소드와 세터 메소드를 사용해야만 우회적으로 비공개 된 정보에 접근할 수 있게 된다....

스코프자바API접근제어자APIprivateAPI

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more