C# Reference - C# Modifiers - override - C# Reference - C# Modifiers - override
The LBTT Spot
"Lifeline is focused on developing and marketing systems designed to assist in the early detection of breast and ovarian cancer."



C# Reference - C# Modifiers - override

View C# Source Code

Article Categories:

.Net Framework
.Net Framework 1.1
ADO.NET
ASP.NET
Assemblies
Asynchronous Methods
C#
Collections
Configuration
Delegates
Events
Pocket PC
Regular Expressions
Smart Devices
SQL Server
Visual C#
Visual Studio .NET
Visual Studio .NET 2003
Windows Forms
XML

C# .Net Fun Menu

View Current Page's ASP.NET Source Code
C# Reference
C# Study Flash Cards
Valuable Links
Contact Us
Site Map
Mike's Portfolio

C# Reference Search:

Full Text Search:

Articles by Author:

Code Examples (zipped):

C# Reference
      C# Modifiers
           override


  • C# Modifiers: [override] Reference from Microsoft®


  • This keyword is used with methods and properties to provide a new implementation of those members inherited from base objects.

    Any class can have it's properties and methods overridden so long they are marked as virtual and they are non-static.

    public class MyClass : Control { public MyClass() { } // this is possible because the base class' Dispose method is marked as virtual protected override void Dispose(bool blnDisposing) { MessageBox.Show("Disposing..."); } }