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 C# syntax to catch any possible exception?

934


How can I use .NET components from COM programs?

912


Does c# do array bounds checking?

981


What is concatenation and when should it be used?

1010


What is jit (just in time)?

976


What is cshtml?

1017


What are the differences between static, public and void in c#?

1056


What are generations and how are they used by the garbage collector?

918


What is the difference between Singleton design pattern and Factory design pattern?

951


How do you define a predicate?

873


What is reference c#?

962


What is difference between array and arraylist c#?

1035


Why do we use parameters in c#?

955


How to find type of variable?

976


What is datacontract in c#?

884