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
What is the C# syntax to catch any possible exception?
How can I use .NET components from COM programs?
Does c# do array bounds checking?
What is concatenation and when should it be used?
What is jit (just in time)?
What is cshtml?
What are the differences between static, public and void in c#?
What are generations and how are they used by the garbage collector?
What is the difference between Singleton design pattern and Factory design pattern?
How do you define a predicate?
What is reference c#?
What is difference between array and arraylist c#?
Why do we use parameters in c#?
How to find type of variable?
What is datacontract in c#?