Export (0) Print
Expand All

public Modifier

Declares that a class, interface, or member has public visibility.

public statement

statement

Required. A class, interface, or member definition.

The public modifier makes a member of a class visible to any code that has access to the class.

All classes and interfaces are public by default. A member of a class or interface can be marked with the public modifier.

You may not combine the public modifier with any of the other visibility modifiers (private, protected, or internal).

Community Additions

ADD
Show:
© 2014 Microsoft