“Virtual keyword is used for generating a virtual path for its derived classes on implementing method overriding” was how one article explained it…which helped not even the slightest. Onto a different article:
“A virtual method is a method that can be redefined in derived classes. It is used when a method’s basic functionality is the same but sometimes more functionality is needed in the derived class. A virtual method is created in the base class that can be overriden in the derived class.”
Okay, that makes more sense. But now I need to look into how a virtual method differs from an abstract one. On the surface they both look like they function similarly with one main difference: an abstract method has to be overriden in it’s derived class whereas a virtual method can remain as-is or be overriden. I think.
I’ll need to do more reading on this topic tomorrow.
Current Progress Status
- Tower Defense Tutorial: 67/73
- C# The Yellow Book (pg 127/216)