Declares that a class, interface, or member has public visibility.
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).