9.1 class definition in C #
C # Use the class keyword to define the class [Default internal]
Class myclass {// class members}
By default, the class is declared as internal, that is, only the code in the current project can access it. You can use the internal access modifier keyword to display the specified, as shown below (but this is not necessary)
Internal class myclass {// class members}
In addition, you can specify that the class is public and should be accessible by code from other projects. To do this, use the public keyword.
Public class myclass {// class members .}
Note: Classes declared in this way cannot be private or protected. You can use the modifiers of these classes to declare class members. For details, see Chapter 10th.
In addition to the two access modifiers, you can also specify that the class is abstract (not instantiated, can only inherit, can have abstract members) or sealed (not inherited ).
Chapter 1 Definition class