GeekInterview.com
Series: Subject: Topic:
Question: 36 of 460

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

Asked by: vamsi062 | Member Since May-2008 | Asked on: May 30th, 2008

View all questions by vamsi062   View all answers by vamsi062

Showing Answers 1 - 12 of 12 Answers
lelia_florina

Answered On : Jun 6th, 2008

View all answers by lelia_florina

private

  
Login to rate this answer.
ericmclachlan

Answered On : Jun 10th, 2008

View all answers by ericmclachlan

class A
{

    // ...
}

is equivalent to

internal class A
{
    // ...
}

Yes  2 Users have rated as useful.
  
Login to rate this answer.

internal

Yes  1 User has rated as useful.
  
Login to rate this answer.
deepikadurge

Answered On : Jun 30th, 2008

View all answers by deepikadurge

by default access specifier of class is internal

Yes  1 User has rated as useful.
  
Login to rate this answer.
tausif_thakur

Answered On : Aug 9th, 2008

View all answers by tausif_thakur

Access Specifier for a Top Level Class is: Internal bcuz scope of tha class is limited within a application.

  
Login to rate this answer.
parvez1487

Answered On : Nov 11th, 2008

View all answers by parvez1487

Internal, but class scope only with in application do not access another application this class.

  
Login to rate this answer.

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.

Yes  3 Users have rated as useful.
  
Login to rate this answer.

class A{ class B { .......... }}is equalent tointernal class A{ private class B { ......... }}

  
Login to rate this answer.

internal

  
Login to rate this answer.
itssabri

Answered On : Jun 4th, 2011

View all answers by itssabri

Things declared outside of a class or struct will default to internal. Things declared inside of a class or struct will default to private.

  
Login to rate this answer.
wincy

Answered On : Sep 5th, 2011

It is internal.

  
Login to rate this answer.
zebediah

Answered On : Sep 7th, 2011

Internal

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.