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
How does bubble sort work?
Could you explain the difference between func vs action vs predicate?
Are c# destructors the same as c++ destructors?
What is the difference between private and protected in c#?
What is a nullreferenceexception?
what is IDisposal interface,IComparable,IEquatable,IFormatable
What is default value of decimal c#?
Explain the various types of classes used in c#?
Can you use all access modifiers for all types?
Explain the advantage of using system.text.stringbuilder over system.string?
Is static thread safe?
Can we maintain state in webservice?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
What can be done with c#?
what is partial assembly reference