C++C++11C++14C++17Introduction to C++Learn C++

What You Need To Know About Virtual Destructors In C++ Apps

Destructors are not only used in classes but also used with struct and union data types. When you construct an object, sometimes you need operations to deconstruct. Do you want to learn what is Virtual Destructor or what kind of methods we have that we can declare and use a virtual destructor? In this post, we will try to explain how to use Virtual Destructor in your C++ apps. What is a C++…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn about Deleted Default Constructor in C++

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