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 thread life cycle in c#?
What are the different ways of method can be overloaded?
What do you mean by serialization in .NET?
What is the CTS, and how does it relate to the CLS?
How do I create multifile assembly?
What are scriptable objects?
What is semaphore in c#?
Difference between directcast and ctype.
What is the difference between properties and indexer in c#?
What is interface inheritance?
Is c# strongly typed?
Which is better python or c#?
How do I use the 'using' keyword with multiple objects?
Explain the difference between a sub and a function in c#.
Is arraylist type safe in c#?