GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 425 of 436    Print  
What is the default access specifier for a Top Level Class,which are not nested into another classes

  
Total Answers and Comments: 7 Last Update: April 07, 2009     Asked by: vamsi062 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: chandra_123
 
The default access specifier for a top level class is internal and private for a nested class. Internal classes can be accessed within the same assembly.

Above answer was rated as good by the following members:
emzyme20
June 06, 2008 07:50:50   #1  
lelia_florina Member Since: June 2008   Contribution: 1    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes
private
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
June 10, 2008 02:45:28   #2  
ericmclachlan Member Since: June 2008   Contribution: 1    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes

class A
{

// ...
}

is equivalent to

internal class A
{
// ...
}


 
Is this answer useful? Yes | No
June 18, 2008 22:47:17   #3  
shybaldbhuddist Member Since: June 2008   Contribution: 1    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes
internal
 
Is this answer useful? Yes | No
June 30, 2008 00:05:48   #4  
deepikadurge Member Since: February 2008   Contribution: 3    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes
by default access specifier of class is internal
 
Is this answer useful? Yes | No
August 09, 2008 10:11:02   #5  
tausif_thakur Member Since: August 2008   Contribution: 1    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes
Access Specifier for a Top Level Class is: Internal bcuz scope of tha class is limited within a application.
 
Is this answer useful? Yes | No
November 11, 2008 05:11:54   #6  
parvez1487 Member Since: November 2008   Contribution: 2    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes
Internal but class scope only with in application do not access another application this class.
 
Is this answer useful? Yes | No
April 07, 2009 09:07:36   #7  
chandra_123 Member Since: April 2009   Contribution: 6    

RE: What is the default access specifier for a Top Level Class,which are not nested into another classes
The default access specifier for a top level class is internal and private for a nested class. Internal classes can be accessed within the same assembly.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
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