class Employee
{

stat9c Method1()
static Method2(ref a)
stat9c Method3(out x)

}

class Employee
{

stat9c Method1()
static Method2(ref a)
stat9c Method3(out x)

}

what will happen & why?

Answer Posted / sisira

it will give complie error bcoz same class name already
declare

Solution:
Make it both class Partial

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

710


What is overloading in c#?

671


What is session state in asp net c# with example?

653


What is an inheritance ?Give an example in which inheritance is used?

743


What is argument in c#?

703


What do you mean by stack and heap in c#?

659


What does console readline do?

652


Explain about c# language.

805


What is xaml file in c#?

715


What is Satellite Assemblies ?

770


Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?

686


What is a struct in C#?

733


What is array formula?

665


What is default value of enum c#?

659


What is the use of ienumerable in c#?

730