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 value c#?
Can firstordefault return null?
Can non-default constructors be used with single call sao?
Does c# support templates?
Are structs value types c#?
What is the major difference between a custom control and user control?
Why do we need delegates in c#?
What is Delegate and what is it used for ?
What is the difference between new and override in c#?
Explain acid rule of thumb for transactions in c#.
What is private void in c#?
What is private variable?
What is the base class of all classes in c#?
Is lazy t thread safe?
Define satellite Assembly in .NET?