GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 360 of 436    Print  
what are the different types of access modifiers

  
Total Answers and Comments: 3 Last Update: September 07, 2006     Asked by: rajeshtk 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 01, 2006 03:12:23   #1  
sekhar        

RE: what are the different types of access modifiers

Hi

Access Modifiers in C# are : 1) private


 
Is this answer useful? Yes | No
September 01, 2006 03:13:46   #2  
sekhar        

RE: what are the different types of access modifiers

Hi

Access modifies of C# are :

1) Private

2) Protected

3) Internal

4) Protected Internal

5) Public


 
Is this answer useful? Yes | No
September 07, 2006 05:34:41   #3  
Raja        

RE: what are the different types of access modifiers

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

{

}

}


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape