2004-10-18
I saw a C # entry-level tutorial, I learned about the C # language, basically similar to Java very similar, but still introduced something.
1. Attributes: Clearly list the attributes, not the set, get mode in JavaBean, although it is also get, set mode package, is more clear and flexible.
2. Event: Integrate event characteristics into the language characteristics, provide special support, and have the characteristics of assigning event processing in JScript dynamics.
3. Access control: For public, protected, private several control keywords, add the internal keyword, control the assembly range (the assembly is a DLL or an EXE).
4, inheritance: Increase the NEW keyword, provide compilation warning for the method that is not explicitly indicated, and is eliminated by the New keyword. Change the Final class in Java to Sealed classes.
5, process control: increase the for-Each statement
6. Data type: The transfer between the simple data type and the object is completed by so-called packing and unpacking technology.
There are still some, but basic and Java are similar, and some restrictions on the naming of classes and documents and stores.