About Virtual functions and their use ?
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between interface and functional interface?
List some of the basic string operation?
What does int32 mean?
Is string a data type in c#?
What is xml serialization and deserialization in c#?
What are the Uses of CLR
How you will create satellite assemblies?
What is the difference between Decorator and Adapter pattern?
What is callback method in c#?
Is php easier than c#?
What is better C# or VB.NET?
Define a strong name in .net?
Does c# have primitives?
How many bytes is a char c#?
What is difference between mutable and immutable in c#?