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

Explain About Postback

887


What is dependency in software?

884


How does foreach loop work in c#?

904


Explain the process of abstraction with an example?

883


Is everything an object c#?

861


What is the difference between abstract class and interface in c#?

896


Why do we need interfaces in c#?

842


How do you prevent a class from being inherited?

864


What is desktop application testing?

857


What is continue in c#?

927


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1845


How do you inherit a class into other class in c#?

862


What is the usage of Enumeration in C# Programming and is it good to use or not ?

920


Is type nullable c#?

880


What is the importance of closing an ado.net application?

846