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 are the methods in c#?

680


What is parameter c#?

704


what is IFormatable

750


Define acid rule of thumb for transactions in c#.

640


What are the 2 broad classifications of data types available in c#?

639






What is args c#?

699


What is class sortedlist underneath?

722


What is difference between Trace and Debug

739


Int map to which .net types?

734


What is a hash table c#?

627


How do you sort an array in c#?

669


Why we use methods in c#?

700


What is string [] args in c#?

686


What is c sharp used for?

658


What are the types of methods in c#?

642