Answer: private is an access modifier which provides access only to a particular class. In other words, a type with
private keyword can be accessed only by the members of that
class or
struct .
It is the default access modifier.
syntax,
private class MyClass
{
...........;
.........;
}
Asked In: Spotted While Learning |
Alert Moderator