Virtual Base Classes
C#
3
Posts
3
Posters
1
Views
1
Watching
-
What is the concept of virtual base classes in C#
-
What is the concept of virtual base classes in C#
Virtual methods are usually placed inside absract classes (superclasses), and do some sort of 'grunt work'. Being marked virtual allows it to be overriden by methods in classes that inherit from it. Think of the concept as a stack of bricks, and when you override the virtual method, you are generally inserting another block right in the middle of the stack. Cheers,
Mark Brock Click here to view my blog
-
What is the concept of virtual base classes in C#