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 tryparse?

940


What are the types of parameters in c#?

987


If you donot specify an access modifier for a method, what is the default access modifier?

1044


How many destructors can a class have?

1035


What is the difference between const and static read-only?

941


What is meant by console programming?

927


Where’s global assembly cache located on the system?

1011


explain Garbage collector’s functionality on unmanaged code

937


Why do we use namespace in c#?

958


What is stringwriter c#?

811


Explain how do you convert a value-type to a reference-type?

874


What is Implementation inheritance

972


What is the resgen.exe tool used for?

987


Explain the advantage of using system.text.stringbuilder over system.string?

886


Why we use get set in c#?

942