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...

interface a
{
Method1()
Method2()
}
class b: a
{
override Method1()
override Method2()
}

what will happen & why?

Answer Posted / vijayakumar

It will throw an error bcz

1.override Key word not use with interface

correct ans :


class b : a
{
public void Method1()
{

}
public void Method2()
{

}
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does bubble sort work?

901


Could you explain the difference between func vs action vs predicate?

856


Are c# destructors the same as c++ destructors?

1113


What is the difference between private and protected in c#?

926


What is a nullreferenceexception?

1018


what is IDisposal interface,IComparable,IEquatable,IFormatable

1012


What is default value of decimal c#?

873


Explain the various types of classes used in c#?

933


Can you use all access modifiers for all types?

965


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

877


Is static thread safe?

868


Can we maintain state in webservice?

974


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1860


What can be done with c#?

821


what is partial assembly reference

942