Discussing the article: "From Basic to Intermediate: Classes (III)"

 

Check out the new article: From Basic to Intermediate: Classes (III).

In this article, we will explore the best ways to manage code when working with object-oriented programming. Although we are just beginning to learn about object-oriented programming, what we will cover here will help you understand its various aspects. This will also help dispel any doubts that may arise later.

In my previous article “From Basic to Intermediate: Classes (II)”, I attempted to explain one of the most confusing topics in object-oriented programming: the concept of a destructor and the basics of how to use it. The destructor is, without a doubt, also one of the most difficult topics. However, there we examined only the simplest and most straightforward aspect of a much more complex issue. The explanation given there applies only to a small part of what actually happens in practice.

The difficulty of object-oriented programming lies not in programming itself, but in the vague definitions of certain concepts necessary for applying it properly. Many authors explain them superficially, and sometimes even incorrectly. You, my dear reader, must master them in order to understand and make use of everything that object-oriented programming has to offer. I am publishing this introductory material now because we will need the concepts it covers to continue implementing the tree mechanism. We took a short break from this implementation to explain these concepts of object-oriented programming clearly.

It is quite likely that this article will conclude the first phase of the necessary explanations. That way, we can return to implementing the tree mechanism right where we left off. Without further ado, let's move on to the main topic of this article.


Author: CODE X