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
is it possible to access a remote web service Without UDDI?
What are managed providers?
Define parsing?
Why do we need dependency injection in c#?
What is console writeline in c#?
What is a property c#?
What do you mean by directing?
What is executescalar in c#?
Do void methods have parameters?
What are immutable types in c#?
Can an abstract class inherit from another abstract class c#?
How do you set a class path?
What are the advantages of interface in c#?
What is type class in c#?
What is an assembly loader?