Flashcards
Chapter 4
Cards in this deck (4)
- 1access modifier PUBLICThe method can be called from any class
- 2Access modifier: PRIVATEThe method can only be called from within the same class
- 3Access modifier: PROTECTEDThe method can only be called from classes in the same package or subclasses
- 4Access modifier: Default (Package Private) AccesThe method can only be called from classes in the same
package. This one is tricky because there is no keyword for default access. You simply omit
the access modifi er.
Information
- Description
- OCA Java Flashcards on Chapter 4, created by Everton Gonçalves on 22/11/2018.
- Created by
- Everton Gonçalves
- Views
- 0
- Rating