What is virtual in c#?



What is virtual in c#?..

Answer / Uday Ranjan

In C#, "virtual" is a keyword used to mark a method as overridable. It allows derived classes to provide their own implementation of the method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is uint64?

1 Answers  


What is executereader in c#?

1 Answers  


Can structs in c# have destructors?

1 Answers  


What is int16?

1 Answers  


Explain the difference between a struct and a class?

1 Answers  


What is sqldatareader c#?

1 Answers  


What is a c# delegate?

1 Answers  


What is difference between for and foreach in c#?

1 Answers  


Can we inherit sealed class in c#?

1 Answers  


What are the 3 types of comments in c#?

1 Answers  


What is the difference between Static, Const and read only?

1 Answers  


What are the different generaions of Garbage Collection and how do they work

4 Answers  


Categories