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: Overloading
Overloading the
const
and
non-const
Member Functions
We all know about the function overloading feature in C++, which allows us to have the …
Detect an Operator Overloading a Class
Define the operator globally so that it accepts all user defined types in order to detect …
Visual Inheritance with C#
Microsoft VS.NET provides design-time support for form inheritance. A derived form can be …
Simplify Operator Overloading
Operator overloading may seem like a complicated task, but in fact, it's really simple. …
Avoid Empty Member Initialization Lists
Following yesterday's tip, here's another deprecated habit that programmers should …
Overloading Methods
Suppose you are writing a method in a class that accepts a parameter of a given type. …
Invoking Overloaded Operators Explicitly
The overloaded operator mechanism is "syntactic sugar" for ordinary function calls. You …
Equivalence Relationship in STL
Certain STL containers and algorithms require that you overload operator < for the …
Deep Copy and Shallow Copy
The terms "deep copy" and "shallow copy" refer to the way objects are copied, for example, …
Guidelines for Overloading the + Operator
The built-in + operator is a binary operator that takes two arguments of the same type and …
Ensure Your Overloaded Subscript Operator Returns an Object by Reference
When you overload the subscript operator, remember that the non-const version of the …
Overloading the Function Call Operator
Overloading the function call operator can be somewhat confusing because the overloaded …
Overloading the Subscript Operator the Right Way
It is customary to overload the subscript operator, [], in classes that hold a sequence …
Operators Can Only be Overloaded for User-Defined Types
An overloaded operator must take at least one argument of a user-defined type (operators …
Overload New and Delete in a Class
It is possible to override the global operators new and delete for a given class. For …
Older Articles
Home
Mobile Site
|
Full Site