InterviewSolution
Saved Bookmarks
| 1. |
What Are Virtual Functions In C# ? |
|
Answer» When you have a function defined in a CLASS that you want to be implemented in an inherited CLASSES, you use virtual functions. The virtual functions COULD be implemented differently in different inherited class and the call to these functions will be decided at runtime. When you have a function defined in a class that you want to be implemented in an inherited classes, you use virtual functions. The virtual functions could be implemented differently in different inherited class and the call to these functions will be decided at runtime. |
|