C++C++11C++14C++17C++20Learn C++Syntax

What Is A Deleted Function In Modern C++?

In programming, some of the most important parts are the functions that we create. They are like Lego parts that we can use in all places of the application. In modern C++ development, a function declaration is really important, and these functions gained some additional abilities after the C++11 standards. C++11 introduced two new features: defaulted and deleted functions. These are very…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn About Deleted Implicit Destructors in A C++ App

Do you want to learn about deleted implicitly declared destructor in a C++ app? Do you know what kind of methods we have that we can declare and use to deleted implicitly-defined destructors? What is defaulted destructor? In this post, we will try to explain deleted implicitly declared destructors in Classes with given examples. What does a Constructor mean in a C++ app? The Constructor in…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn to use Deleted Implicitly-Declared Default Constructor

The Constructorin C++ is a function, a method in the class, but it is a ‘special method’ that is automatically called when an object of a class is created. We don’t need to call this function. Whenever a new object of a class is created, the Constructor allows the class to initialize member variables or allocate storage. This is why the name Constructor is given to this…
Read more
C++C++11C++14C++17Introduction to C++Learn C++Syntax

Learn How To Use Types Of Destructors In C++?

When we are developing modern applications, we construct many objects by using our classes, they normally deconstruct themself when they are out of scope, sometimes we need operations to deconstruct them which means we need to define destructors. Destructors are not only used in classes but also used with struct and union data types. In this post, we will try to explain how to use a Typical…
Read more