What does virtual keyword mean ?

Answer Posted / sanjeet kumar rai

The keyword virtual is applied to a method declaration to
indicate that the method may be overridden in a subclass. If
the virtual keyword is not applied and a method is defined
in a subclass with the same signature as the one in the
super class, the method in the super class is hidden by the
subclass implementation.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is and as in c#?

580


Why abstraction is used in c#?

593


How does c# achieve polymorphism?

568


What is interface inheritance?

613


What is assembly manifest?

605






What is the difference between values and reference types?

597


What is difference between throw and throws in c#?

515


What is the difference between a private assembly and a shared assembly?

653


What is args c#?

614


What does clr stand for?

576


What is the differences between datagrid, datalist and repeater in .net?

568


What is a constructor in c#?

610


In C#, explain the difference between overloading and overriding.

644


What are the different approaches of passing parameters to a method?

575


What is difference between c sharp and c#?

555