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 the difference between field and property in c#?

470


Is versioning applicable to private assemblies?

568


What is the purpose of ienumerable in c#?

492


Are arrays immutable c#?

515


What is response redirect in c#?

478






Explain the difference between user control and custom control. Also, explain their use.

588


What is the difference between int16 and int32 in c#?

474


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

594


what is the difference between convert.tostring() and tostring() functions ?

570


What is the difference between static and constant variables?

539


how dot net compiled code will become platform independent?

526


Define constructor in c#.

511


Is c# 8 released?

488


What are jump statements in c#?

499


Are value types sealed?

511