Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?

Answers were Sorted based on User's Feedback



class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } ..

Answer / 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

class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } ..

Answer / sisira

it will give complie error bcoz same class name already
declare

Solution:
Make it both class Partial

and stat9c is not key word
please make it static.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a delegate? Explain.

0 Answers  


What are most desktop applications written in?

0 Answers  


What is boxing? Explain its functionality?

0 Answers   Siebel,


how to convert String array to StringBuilder array or vice versa?

3 Answers   Wipro,


What is double c#?

0 Answers  


What are the different types of assemblies available and their purpose?

0 Answers  


what are nullable types in c#

0 Answers   Cognizant,


What is verbatim literal in c#?

0 Answers  


What is dll in c#?

0 Answers  


What is the use of parse in c#?

0 Answers  


Does c# supports destructors?

9 Answers   Choice Solutions,


What is the difference between out and ref in c#?

0 Answers  


Categories