WHY IS THE VIRTUAL KEYWORD USED IN CODE?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1021  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Why is the virtual keyword used in code?

    The virtual keyword is used while defining a class to specify that the methods and the properties of that class can be overridden in derived classes.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!