Newsletter
Advertiser Disclosure
Architecture
Databases
Enterprise
.NET
Java
OpenSource
Mobile
Web Dev
DevXtra Blogs
Daily News
Tips Bank
eBook Library
Subscribe
Twitter
Full Site
RSS
Copyright 2021 © QuinStreet Inc. All Rights Reserved
Search
SEARCH
Submit
DevX Tips Bank: Virtual Functions
Calling a Virtual Method from a Non-Virtual Method
How can you tell which f2() will be invoked:
Pure Virtual Functions Declared as Private in C++ Classes
How can a pure virtual function be private? Will the derived class be able to override it? …
Using a Function Call as an Lvalue
Learn how to use a function call as an Lvalue.
Visual Inheritance with C#
Microsoft VS.NET provides design-time support for form inheritance. A derived form can be …
When to Use Virtual Functions
This tip demonstrates how to use virtual functions when you override a base method.
Qualified Calls
A function call such as the ...
Inlining Virtual Member Functions
Generally, compilers can't inline a virtual function call if the it's resolved …
Virtual and Non-Virtual
Why would a call to a virtual function execute slower than a call to a non-virtual …
Calling a Virtual Member Function From a Constructor
< ...
To Virtual Or Not To Virtual?
< ...
The Importance of Virtual Destructors
Some classes in the Standard Library do not have a virtual destructor or virtual member …
Preventing Program's Crash due to a Pure Virtual Function's Call
A pure function should never be invoked. However, a buggy program or a buggy compiler …
Converting a Virtual Member Function to a Pure Virtual One in a Derived Class
In general, a derived class that inherits a pure virtual member function from its …
Accessing a C++ Object in C Code: Support for Virtual Member Functions
In the case of virtual functions, an additional member is inserted into the class: a …
Simulating Virtual Constructors
A constructor may not be declared virtual. The easiest way to simulate virtual …
Older Articles
Home
Mobile Site
|
Full Site