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 the different phase/steps of acquiring a proxy object in webservice?
Does c# have a 'throws' clause?
why delegate is type safe?
Explain about Error handling and how this is done
Can we have only “try” block without “catch” block in c#?
Is array a list?
What is a static class in c#?
Why c# is called c sharp?
In a site to turn off cookies for one page which method is followed?
What is difference between C# and VB.NET?
How do you define a predicate?
How can i Spawn a Thread
Explain how to implement delegates in c#.net
What is a cshtml file?
Name the connections does microsoft sql server support?