About Virtual functions and their use ?

Answer Posted / vijay rana

when we override a metod in sub class,and we want to hide
the decelaration of the base class member then we used the
keyword virtual in superclass,
and keyword override in the subclass

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of dependency injection?

589


What exactly is serverless?

495


Enlist some of the properties of a thread class?

587


What is constructors, explain with syntax

613


How do you declare an arraylist?

576






What are controls in c#?

584


How do you achieve polymorphism in c#?

578


What is c# most used for?

648


Do extension methods have to be static?

624


How is exception handling implemented in c#?

681


What is difference between ienumerable and list?

613


What are the drawbacks of extending an interface as opposed to extending a class?

547


Define multicast delegate in c#?

592


Why do we need constructors?

588


write a c# program add two matrix with input number ?

640