I've got a "C # Collection", there is the following questions and experience:

xiaoxiao2021-04-03  276

1, C # already has reference parameters, why do you need to output a parameter?

2, the destructor in the C # complete the same function with the Finalize () function in Java?

* 3, in general, try to make constants become static variables, so that there is only one constant value in memory.

4, there is a public modifier in C #? A total of those modifiers?

5. Why is it possible to rewrite only the virtual, Abstract, Override method? This is also the C approach, and the method of the Java class can be overloaded by default, I think Java practices reasonable!

6. Is there a constructor that call the base class in Java? If the base class does not have a default constructor ...

* 7, the main disadvantage with the contained inheritance is to lose the benefits of polymorphism, in addition to this, the user can get all the advantages of the code reuse.

* 8, the C # keyword defined variable type is actually the structure defined by .NET Framework, that is, basic types -int, uint, long, etc., are actually implemented as a structure. This design is part of the C # code to be portable to other .NET language. (I think .NET can adopt some techniques in the design of language implementation, you should pay attention to the study, summarizing the summary) (P114, 201)

9. What is the difference between $ include in C # in C # in C ? In fact, there is also a use keyword in C ! I think there is a difference: (1) Using can be carried out alias (2) Using a name Space (3) Using with parentheses expressions

10.C # has class Class, why is Struts?

11. By using the New's modifier, it is possible to display members that inherited from the base class implementation.

12. Is there any difference between the public, private member, which is initialized? (P294)

13, C # Programming does not seem like Java, forcibly demanding exceptions, why is this design?

14. Attribute is a class, what is it in nature? How is the compiler use properties? What is the process?

转载请注明原文地址:https://www.9cbs.com/read-131517.html

New Post(0)