interface a
{
Method1()
Method2()
}
class b: a
{
override Method1()
override Method2()
}
what will happen & why?
Answer Posted / vijayakumar
It will throw an error bcz
1.override Key word not use with interface
correct ans :
class b : a
{
public void Method1()
{
}
public void Method2()
{
}
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is keywords in c#?
What is msil, and why should developers need an appreciation of it if at all?
Why do we use methods in c#?
What is the use of static in c#?
What is private protected in c#?
What are methods c#?
Is class reference type c#?
Is c and c# the same?
How does c# achieve polymorphism?
What is meant by console programming?
how to print invert pyramid in c#
What is event delegate in c#?
What is a di class?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
What are handlers in c#?