ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
   
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What are the different access modifier? Explain in detail?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are the different access modifier? Explain in detail?
Answer
# 1
The access modifier on a property applies to both its get
and set accessors, so different modifiers can’t be applied
for same property.
1. Public- Accessible outside the class through object.
2. Private- Accessible inside the class by member
functions.
3. Protected- Just like private but accessible in derived
class also but by member functions.
4. Internal- Visible inside the Assembly. Accessible through
members. Logic is same as global private.
5. Protected Internal- Visible inside the assembly and
outside the assembly through derived classes.
 
Is This Answer Correct ?    4 Yes 0 No
Imatoria
 
  Re: What are the different access modifier? Explain in detail?
Answer
# 2
public == accessble from any where,no restriction.
private == aceessble only from within the class only.
protected == accessble from same class and child class also
but not from non-child class.it may be within
project or out side of the project also.
internal == accessble only from same class and child class
and non-child class also but within the project
only.
protected internal == accessble from any where except
non-child class of out side of the
project.
 
Is This Answer Correct ?    0 Yes 0 No
Pushparaj Pentakota(anakapalli
 
 
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
How to send e-mail to gmail/yahoo or any other ID from your mail server.I need the code.  1
.net platform independent or dependent? TCS5
WHAT IS COMPUTER NICE7
What is ITIL? What is the use of ITIL and how it works? IBM4
What exactly is being serialized when you perform serialization? scope in C# ?  1
what are constructors and destructors Six-Sigma1
How to delete the duplicate records from table(having bulk records)? iGate4
how to make my form not to appear in the task bar? Six-Sigma1
What are the different access modifier? Explain in detail? Tesco2
which would be the best to use inproc,outproc or sql server Ness-Technologies1
how windows applications different from the console applications? Six-Sigma1
Is .NET really support fully OOP Concept?  1
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com