The Constructor initializes the data members of a class. When a class does not have a parameter less constructor, the compiler will provide one. But, it has some unwanted behaviors.
In this example we will learn how static member variables work in C++ including declaring & initializing it and understanding its scope and visibility.
This article shows how you create, write and read three dimensional arrays.
This articles explains basics of inheritance in C++. Then, it will walk you through different inheritance types and roles of access specifiers.
When a class is instantiated, it is stored in memory and one can call a member function after that. The pointer ‘this’ refers the calling object inside the member function.
A pointer points to an address and when the pointed address is a function’s starting location, we call it as Function Pointer.
Structure and Union are user-defined data types in C and C++. But, they behave differently in C and C++. In this article, you can learn the difference between Structure and Union and its behavior in C and C++.