About Virtual functions and their use ?

Answers were Sorted based on User's Feedback



About Virtual functions and their use ?..

Answer / belson gnana pradeep

Virtual methods those can be overridden and replaced by sub classes.
When working with virtual methods keep in mind datatype of
an object is used to determine the implementation of
the method to call, rather than the type of the variable
that refers to an object.

In C#, a base class must provide the "virtual" modifier for
any virtual method, and derived classes must provide the
"override" modifier for any overriden method inherited from
a base class.

In VB.NET, a base class must provide the "Overridable"
modifier for any virtual method, and derived classes may
provide the optional "Overrides" modifier for any overriden
method inherited from a base class

Is This Answer Correct ?    4 Yes 0 No

About Virtual functions and their use ?..

Answer / mahesh babu ummaneni

virtual is nothing but it is a keyword ,when we diclare a method with virtual key word in base class thet method must be overroden in derived class

Is This Answer Correct ?    1 Yes 0 No

About Virtual functions and their use ?..

Answer / ssss

Virtual functions are used to override the derived class.If
u r using the virtual keyword u must override the the
derived class

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More C Sharp Interview Questions

What?s a delegate?

8 Answers   CTS, Visual Soft,


In dynamic link library, which api is used for load library?

0 Answers   C DAC,


What is check/uncheck?

0 Answers  


what is object-oriented programming (oop) language?

0 Answers  


What is hierarchical inheritance in c#?

0 Answers  






What is typeof c#?

0 Answers  


What is difference between property and variable in c#?

0 Answers  


Can we override static class in c#?

0 Answers  


what is accessspecifier and explation each with example?

3 Answers  


What is the main method?

0 Answers  


What is Signature and parameter in overloading ?

3 Answers  


What are the fundamental oop concepts?

0 Answers  


Categories