NET class (member) feature

xiaoxiao2021-03-06  93

The following is the NET class feature:

Sealed --------- Indicates that the class cannot be used as a basic class that can be inherited;

Implements ----- indicates that the class implements one or more interfaces;

Abstract -------- Indicates that the class contains one or more abstract methods, and cannot create an example of an abstract class;

Inherits --------- Indicates that the class is inherited from other classes;

Exported ------- Indicates that the class is visible to the outside.

The following is the NET class member characteristics:

Abstract ---------------------------------------------------

Private, public, family, assembly ------ private member can only access it in the class defined. Public members can be accessed outside. Family members are accessible to all classes that are derived from this class, and Assembly members can access Family or Assembly members for classes in the same assembly for classes that are derived from this class and the same asSembly. access.

Final --------- Final method cannot be overloaded in a class.

OVERRIDES ---- The method covered from the subclass inherited from its parent class.

Static ------- member of the class itself, not any instance of the class, which is shared between all members of the class, and can be accessed without class.

OverLoads ---- Identify the use of the same name, but have different parameters.

Virtual -------- The method of being called by the late binding method is the virtual method. This type of object enables the caller to determine which method is called, not the type of object to be called.

Synehronized ---- On a moment, only one thread can access the synchronization code.

?

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

New Post(0)