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

Define delay signing?

613


What is a dimensional array?

538


What are virtual classes in c#?

620


Define delegate in c#?

622


What is datetime parse in c#?

598






What is the diff between System.String and System.Text.StringBuilder classes?

615


Which operator cannot be overloaded in c sharp?

573


What are the delegates in c#?

567


What is gridview c#?

571


What are the 3 logical operators?

641


What is hierarchical inheritance in c#?

558


What is a reference type c#?

606


What do you mean by abstract class in c#?

594


What you mean by delegate in c#?

578


What is meant by clr?

648