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 boxing in c#?
So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?
Is c# difficult to learn?
What is the difference between string and string in c#?
What are the delegates in c#?
What is c sharp used for?
What is the meaning of 0 in c#?
what is collections in .net? why we use?
What is private variable?
What is Inheritance in C#?
What is type checking in c#?
Why is it not a good idea to use empty destructors?
What are the 2 broad classifications of data types available in c#?
What is a lambda expression in c#?
What is hashtable in c# with example?