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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe SOA and the tenets of it?

557


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

510


I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

544


What is a windows service?

557


Is there any limit for query string? Means what is the maximum size?

490






Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

524


What are the authentication types in asp.net?

575


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

563


How will you load dynamic assembly?

540


What is difference between inproc and outproc?

663


how to retrieve property settings from xml .config file.

547


Describe a Windows Service and its lifecycle ?

625


What is syntax code to send email from an asp.net application?

534


What is a master page and what does it do?

536


What are html helpers in asp.net?

527