Define scope and visibility.
9 Likes
Scope refers to the parts of the program where a particular piece of code or data item would be known and can be accessed.
Visibility is a related term and refers to whether we can use a variable from a given place in the program.
Answered By
6 Likes
How does a class enforce information hiding ?
Name various visibility modifiers in a class.
What will be the scope of a public class ?
What will be the scope of a protected class ?