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
Distinguish between array and arraylist in c#?
What is uint16?
What is the signature of a method?
Write down the c# syntax to catch an exception
Why do we need escape characters?
How can I get around scope problems in a try/catch?
Explain the process of polymorphism with an example?
Which control cannot be placed in mdi?
In .Net, what is an assembly? Also explain the type of assembly.
What is the difference between parse and tryparse in c#?
How long has c# been around?
What is a hash table in c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What are custom exceptions?
Is an array an object c#?