What is virtual class in C#?



What is virtual class in C#?..

Answer / Deepak Kumar Dhama

In C#, a 'virtual' keyword is used to indicate that a method can be overridden by derived classes. It does not create a virtual class as such; instead, it allows for polymorphism through inheritance and overriding.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What does void mean unity?

1 Answers  


What is c# commonly used for?

1 Answers  


What is data hiding in c#?

1 Answers  


What does void mean in c#?

1 Answers  


What can we do to handle multiple exceptions?

1 Answers   Accenture,


What is the adv of using System.Text.StringBuilder over System.String?

1 Answers   Siebel,


Are there functions in c#?

1 Answers  


What is difference between list and dictionary in c#?

1 Answers  


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

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


what kind of questions (.net)to expect in a telephonic interview.This is the first time i will be facing a tele interview .Any inputs regarding this??

2 Answers   iNube Software Solutions,


How can you force derived classes to provide new method implementations for virtual methods?

1 Answers  


How do you generate documentation from the C# file commented properly with a command-line compiler?

1 Answers  


Categories