interface a
{
Method1()
Method2()
}
class b: a
{
override Method1()
override Method2()
}

what will happen & why?

Answer Posted / sandeep joshi

without virtual keyword
cant override method
its error at compile time .....

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is gridview c#?

504


What is the use of getcommandlineargs() method in c#.net?

514


What is mvc in c#?

463


What is managed code?

542


Explain About .NET Framework

527






Explain how to parse a datetime string?

506


What is c# used for in the industry?

490


What happens if a static constructor throws an exception?

492


What is meant by enumerable in c#?

493


What is private static in c#?

480


What Happens In Memory When You Box And Unbox A Value-type?

470


What is the default value of string in c#?

557


What is difference between string and string builder?

527


Give some examples for built in datatypes in c#?

552


What does an indexer do?

480