Hi....
Ques : State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Gaurang Upadhyay167 reputationPosted Jan 27, 2012, 8:56 PM EST
There Is Four Modifiers in C# public, Private, Protected, Internal.
The following five accessibility levels can be specified using the access modifiers:
public: Access is not restricted.
protected: Access is limited to the containing class or types derived from the containing class.
Internal: Access is limited to the current assembly.
protected internal: Access is limited to the current assembly or types derived from the containing class.
private: Access is limited to the containing type.
Please check this link it give brief description on these four.http://www.c-sharpcorner.com/uploadfile/puranindia/what-are-access-modifiers-in-C-Sharp/
Thanks & regards
Gaurang Upadhyay
Sr. Developer
VulpesRank #55 · 29.2K reputationPosted Jan 28, 2012, 1:41 AM EST