Wednesday, April 11, 2018

The difference between Protected, Private and Public in Java

Explanations

  • private member is only accessible within the same class as it is declared.
  • A member with no access modifier is only accessible within classes in the same package.
  • protected member is accessible within all classes in the same package and within subclasses in other packages.
  • public member is accessible to all classes (unless it resides in a module that does not export the package it is declared in).

khuy

Author & Editor

You may come here to learn not to laugh sorry bout that btw haha

1 nhận xét:

  1. Titanium Water Bottle - 3 in 1 - Titanium-arts.com
    The bottle has a microtouch titanium trim as seen on tv design inspired titanium watch band by the ancient Roman sculpture. titanium paint color The bottle contains a glass titanium band rings bottle titanium athletics that contains the inner bottle.

    ReplyDelete

 
biz.