Access modifiers in C #

private: private, can be used only in this category

internal: internal, can be used in the same namespace

public: public, can be used anywhere

protected: protected, in the present classes and subclasses can access

 

Class access modifier can be public or internal, access to the subclass can not access higher than the parent class, subclass will storm drain because the parent class members.

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11601275.html