Discussing the article: "Beginner to Intermediate: Operator Overloading (I)"

Check out the new article: Beginner to Intermediate: Operator Overloading (I).

In this article, we will begin exploring how so-called operator overloading is implemented. First, we will take a look at the fundamentals of this implementation. In addition, we will see that things are not always as complicated as they seem.

In my previous article, "From Basic to Intermediate Level: Queues, Lists, and Trees (VIII)", I presented my version of one of the many tree-balancing algorithms that can be implemented. As explained there, the goal of every balancing algorithm is to make the tree more efficient for searching. Some of them allow the tree to be better adapted to certain types of searches, while others make it more suitable for other kinds of searches.

For now, we will not go into detail about searching in trees. Before I show you this implementation, I would like to introduce and explain another topic. This is a rather interesting topic, although it often causes confusion for many beginner programmers, especially when they are learning other languages that do not offer this feature.

The topic we are about to discuss is intended to simplify our future code development in various ways. As code becomes more complex, in many cases it also loses readability, making it harder to understand what we are trying to achieve.

However, contrary to what many people think, what we will see here will make programming much more exciting and enjoyable. However, certain precautions should be taken when implementing it. I will take the simplest approach possible whenever I can. Most of what I am going to explain is based on my experience programming in C/C++. Nevertheless, I will try to explain it as simply as possible.


Author: CODE X