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 |
Please explain the basic string operations used in c#?
What is global namespace in c#?
What does assemblyinfo.cs consists ?
the c# keyword .int. Maps to which .net type?
What is data type in c# with example?
Can the nested class access, the containing class. Give an example?
Is static thread safe?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
Is c# int immutable?
what is uniary operators and binary operators and what is the difference
Is c# difficult to learn?
What?s a delegate?