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 |
Can list contain duplicates c#?
what are the bugs are faced in a project
How encapsulation and abstraction defined/used in C#.NET.
Illustrate the differences between the system.array.copyto() and system.array.clone()?
Is c# pass by value?
How to find whether the application is run from inside ide or not?
What is difference between an reference type and value type in C#?
How many constructors can a class have in c#?
What is the difference between values and reference types?
Can we throw exception from catch block
What is the difference between paramaterized constructor and copy constructor?
Is unboxing an implicit conversion?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)