Encapsulation
In this chapter you will learn:
What is Encapsulation
All methods, fields, constants, properties, and events must be declared within a type. These are called the members of the class or struct.
In C#, there are no global variables or methods. The program's entry point, the Main method, must be declared within a class or struct.
The following list includes all the various kinds of members that may be declared in a class or struct.
- Fields
- Constants
- Properties
- Methods
- Constructors
- Destructors
- Events
- Indexers
- Operators
- Nested Types
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » Class