Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

public Modifier

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

public 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).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.