What are virtual methods? How are they used?

Answers were Sorted based on User's Feedback



What are virtual methods? How are they used?..

Answer / betty

virtual methods is applied in polymorphism. When you declare
a method as virtual, you can override the method in another
class.

Is This Answer Correct ?    6 Yes 0 No

What are virtual methods? How are they used?..

Answer / chinju

virtual methods are methods that do not really exists but
act as exist in some part of a program.Keyword virtual is used.

Is This Answer Correct ?    0 Yes 2 No

What are virtual methods? How are they used?..

Answer / chandana

virtual methods are method definitions without
implementations specified. Such methods are a part of
abstract classes, which can not be instantiated. Any non-
abstract child class must provide implementation for these
classes.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More C Sharp Interview Questions

What is polymorphism c# example?

0 Answers  


What is signature c#?

0 Answers  


Why we can't create the object of abstract class ?

15 Answers   Assyst, CTS, HCL, IBM, L&T,


How do you create multiple inheritance in C#?

5 Answers   Microsoft,


Is array a collection c#?

0 Answers  






How to include c++ header files in c# components?

1 Answers   UST,


What is type checking in c#?

0 Answers  


Enlist some of the properties of a thread class?

0 Answers  


Why we use extension method in c#?

0 Answers  


Can hashtable have duplicate keys?

0 Answers  


How much time will it take to learn unity?

0 Answers  


What is difference between comparable and comparator?

0 Answers  


Categories