1. Relationship between classes and objects Dept dept=new Dept ();
Parsing: A class is the type of object (big kind) code plane: Dept
An object is an instance of a class (a specific Individual) the Code plane: Dept
2..NET Framework two main components: CLR (Common Language Runtime Common Language Runtime) and FCL (framework class Library)
3. Class Library Concept: A collection of functionally similar Classes.
Similar to the main program of QQ support class library, the end of the DLL file (dynamic linked library dynamically linked Libraries)
Two kinds of embodiment of class Library: exe DLL
4. Automatic Attributes
Note: when we do not need to make a logical decision, he is equivalent to the private field + common Attributes.
Automatic attribute bottom generation: private field + Public property
5. Classes and objects
(1) Class and Object relationships:
The generalization of objects is the process of Generalization.
On the basis of a class, the process of instantiating state and behavior into an object is called Instantiation.
(2) Property Accessors (get and Set)
Write-only property: contains only the set Accessor.
Read-only property: contains only get Accessors.
Read-write Properties: both a set accessor and a get accessor are included.
(3) shortcut keys for automatic attributes: prop keyword +tap key +tap key.
6. Encapsulation
(1) encapsulation, also known as information hiding, refers to the use of abstract types to combine the operation of data, so that it constitutes an indivisible independent entity, as far as possible to hide the internal details of only a few external interfaces, so that the external Connection.
(2) Package Benefits:
Ensure data Security.
Provides clear external interface.
The internal implementation of the class can be arbitrarily modified without affecting other Classes.
The first chapter is in Depth. NET Framework