Person (age,. age = age;. name = Main (= Person (, View Code
Person (. age = Person (age, name): Main (= Person (,);} View Code
Ii. Classification
1. The class names must be the same in the same namespace. The classes modified by partial are called partial classes or partner classes.
2. the C # compiler translates the variable defined in the other partner class into one class when compiling the partner class.
3. Separate management to facilitate maintenance.
. Num = View Code
Iii. understanding null
1. The Value Type of the local variable exists in the stack, and the reference type exists in the stack. The member field, whether it is a reference type or a value type, exists in the object in the heap.
2. Understand the code
Dog dog = Main (= View Code
3. Only the value of the referenced type can be null. The value type cannot. If the value of the referenced type is null, the variable does not point to any object in the space.
Person p =;
Statement: The content above is original. If you need to reprint it, please indicate the source.