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 keywords in c#?

902


What is msil, and why should developers need an appreciation of it if at all?

1060


Why do we use methods in c#?

903


What is the use of static in c#?

939


What is private protected in c#?

901


What are methods c#?

890


Is class reference type c#?

924


Is c and c# the same?

921


How does c# achieve polymorphism?

951


What is meant by console programming?

934


how to print invert pyramid in c#

1770


What is event delegate in c#?

1094


What is a di class?

1090


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

1026


What are handlers in c#?

958