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
Explain how to parse a datetime string?
What the different phase/steps of acquiring a proxy object in webservice?
What is an abstract class c#?
How does foreach loop work in c#?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
What is a framework in c#?
Which debugging tools you can use in the .NET ssSDK?
Explain about Oops concept
Describe the overview of clr integration.
What are boxing and unboxing?
What is difference between an reference type and value type in C#?
Can non-default constructors be used with single call sao?
What is difference between ienumerable and list in c#?
Can var be null c#?
What is foreach loop in c#?