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 difference between iqueryable and ienumerable?
Is c# an open source?
How do you achieve polymorphism in c#?
Define delegate in c#?
What is a satellite assembly in c#?
What are the boolean data types in c#?
What benefit do you get from using a primary interop assembly (pia)?
What is the usage of transponders?
What is sqlcommand in c#?
What is a race condition?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
How do you create empty strings in c#?
How many types of constructors are there?
Explain dataadapter.update method in .net?
What is the object class in c#?