About Virtual functions and their use ?
Answers were Sorted based on User's Feedback
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 |
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 |
What?s a delegate?
In dynamic link library, which api is used for load library?
What is check/uncheck?
what is object-oriented programming (oop) language?
What is hierarchical inheritance in c#?
What is typeof c#?
What is difference between property and variable in c#?
Can we override static class in c#?
what is accessspecifier and explation each with example?
What is the main method?
What is Signature and parameter in overloading ?
What are the fundamental oop concepts?