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
Define delay signing?
What is a dimensional array?
What are virtual classes in c#?
Define delegate in c#?
What is datetime parse in c#?
What is the diff between System.String and System.Text.StringBuilder classes?
Which operator cannot be overloaded in c sharp?
What are the delegates in c#?
What is gridview c#?
What are the 3 logical operators?
What is hierarchical inheritance in c#?
What is a reference type c#?
What do you mean by abstract class in c#?
What you mean by delegate in c#?
What is meant by clr?