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


Please Help Members By Posting Answers For Below Questions

What is value c#?

458


Can firstordefault return null?

507


Can non-default constructors be used with single call sao?

523


Does c# support templates?

535


Are structs value types c#?

472






What is the major difference between a custom control and user control?

556


Why do we need delegates in c#?

488


What is Delegate and what is it used for ?

575


What is the difference between new and override in c#?

552


Explain acid rule of thumb for transactions in c#.

522


What is private void in c#?

518


What is private variable?

483


What is the base class of all classes in c#?

507


Is lazy t thread safe?

546


Define satellite Assembly in .NET?

555