Answer: public is an access modifier which has no restrictions. In other words, a type with
public keyword can be accessed by any one from any assembly which references it.
syntax,
public class MyClass // public class
{
public int a; // public field
}
Asked In: Spotted While Learning |
Alert Moderator