Can we make a class with class with same;suppose
public class abc
{
public class abc
{
}
}



Can we make a class with class with same;suppose public class abc { public class abc { } }..

Answer / phani

No, We can't make a class with same.
We will get error as: Member name can't be same as their
enclosed types

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Describe how passport authentication works.

0 Answers  


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

0 Answers  


I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?

0 Answers   TCS,


How can we make sure that Web API returns JSON data only?

0 Answers  


Define common type system?

0 Answers  






Explain different authentication modes in asp.net?

0 Answers  


When Cookies are expired in ASP.NET?

0 Answers   Sans Pareil IT Services,


Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

0 Answers  


what is use of web.config?

3 Answers  


How many no of classes in .net

4 Answers  


Asp.net and asp ? differences?

2 Answers  


Can user control be stored in library?

0 Answers  


Categories