You are here:About>Computing & Technology>C / C++ / C#> Glossary> O> Overriding - Definition
About.comC / C++ / C#

"Definition of Overriding"

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!
Definition: A function in C++ and C# can be marked as virtual. This means that it can be overridden in a derived class so that it has different behaviour. This is called Polymorphism because the overridden function will behave differently from the original function in the base class.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples: Overriding is how inheritance is done.
 All Topics | Email Article | Print this Page | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.