What are the different types of access modifiers

Questions by rajeshtk

Showing Answers 1 - 3 of 3 Answers

sekhar

  • Sep 1st, 2006
 

Hi,

   Access Modifiers in C# are : 1) private

                                         

  Was this answer useful?  Yes

sekhar

  • Sep 1st, 2006
 

Hi,

 Access modifies of C# are :

1) Private

2) Protected

3) Internal

4) Protected Internal

5) Public

  Was this answer useful?  Yes

Raja

  • Sep 7th, 2006
 

Hi All,

         The different types of access modifiers  are

          1. private

          2. public

          3. internal

          4. protected

          5. protected internal

Note:

          Only public and internal modifiers can allowed in namespace elements. i.e

namespace TestModifier

{

    // allowed

    public class PublicExample

{

}

//not allowed

   private class PrivateExample

{

}

}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions