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

What is var c#?

483


What is difference between constants and read-only?

444


Why we use oops in c#?

531


Explain the advantage of using system.text.stringbuilder over system.string?

463


Define c# and list the features.

531






What are assemblies?

539


what is the difference between .dll and .exe

528


What are the three types of predicates?

452


What is Fragmentation and its Types?

563


Explain the three test cases in unit testing?

594


What is a variable in c#?

471


What is 8 bit signed integer?

476


Is enum a value type c#?

524


Can hashtable have duplicate keys?

495


What is parallel foreach c#?

508