Public Access Flashcards

1
Q

Remind me of the definition of public access !

A

a public method can be accessed from inside and outside the package by any
class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Run code for all scenarios involving a public access member !

A

An access to a public method can be attempted :
- from within the same class
- from a class within the same package
- from a class outside the package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly