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

What is thread life cycle in c#?

922


What are the different ways of method can be overloaded?

838


What do you mean by serialization in .NET?

976


What is the CTS, and how does it relate to the CLS?

952


How do I create multifile assembly?

892


What are scriptable objects?

875


What is semaphore in c#?

890


Difference between directcast and ctype.

970


What is the difference between properties and indexer in c#?

865


What is interface inheritance?

909


Is c# strongly typed?

809


Which is better python or c#?

815


How do I use the 'using' keyword with multiple objects?

911


Explain the difference between a sub and a function in c#.

961


Is arraylist type safe in c#?

939