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?

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


Please Help Members By Posting Answers For Below Questions

what is partial assembly reference

988


what is the difference between convert.tostring() and tostring() functions ?

1095


Why delegates are type safe?

966


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

2057


Explain the working of serialization?

940


What is a partial class in c#?

1108


What is private virtual in C#?

1054


What is the use of console readkey in c#?

993


What are the delegates in c#?

995


Why do we use readonly in c#?

956


Which is more efficient for loop or while loop?

927


Difference between StackPanel and RelativePanel ?

1064


What is main thread in c#?

960


Why do we need encapsulation in c#?

999


Why singleton class is sealed in c#?

989