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

A compile time error will be thrown as there exist no
methods to override. The methods in the interface are just a
contract.
To override any method, it should be defined as virtual.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between iqueryable and ienumerable?

907


Is c# an open source?

882


How do you achieve polymorphism in c#?

856


Define delegate in c#?

889


What is a satellite assembly in c#?

958


What are the boolean data types in c#?

961


What benefit do you get from using a primary interop assembly (pia)?

937


What is the usage of transponders?

903


What is sqlcommand in c#?

862


What is a race condition?

846


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

891


How do you create empty strings in c#?

884


How many types of constructors are there?

846


Explain dataadapter.update method in .net?

921


What is the object class in c#?

920