Virtual function is a member function which is re-defined by a derived class and declared within a base class. When you refer to a derived class object using a reference…
C++
In C++ exception handling is a process to handle runtime errors. If we perform exception handling, so the normal flow of the application can be maintained even after runtime errors….
In C++ namespace is a logical division of the code which is designed to stop the naming conflict. In C++ namespace defines the scope where the identifiers such as variables,…
During multiple inheritance Virtual Inheritance is used to remove the ambiguity of base class, when a derived class inherits the same base class via other classes in C++. For example,…
In C++ a template is a simple and yet very powerful tool. We don’t need to write the same code for different data types because it is simple idea to…
Stack is an abstract data structure that contains a collection of elements. It implements the Last In First Out (LIFO) mechanism this element is pushed at the end is popped…
Pointers are symbolic representation of addresses and it enables a program to simulate call-by-reference as well as to create and manipulate dynamic data structures. It defines a pointer variable and…
If a single object behaves in many ways, it is known as overloading. It provides different versions of the same function while a single object has the same name. C++…
In C++ Boolean data type is defined using the bool keyword. This servers as an easy and convenient datatype for programmers to manage and write conditional statements using a boolean…
In C++ destructor is a member function of a class used to free the space occupied by or delete an object of the class that goes out of scope. In…
An iterator is an object like a pointer that points to an element inside the container. Iterator can use to move through the contents of the container. We can access…
In C++ destructor is an instance member function which is invoked automatically whenever an object is going to be destroyed. A destructor meaning is the last function that is going…
In C++ constructor is a special type of member function of a class which initializes objects of a class. Constructor is automatically called when object is created in C++. It…
It is an object-oriented programming language that can be used to create high-performance applications. In 1985 C++ was developed by Bjarne Stroustrup as an extension of c program language. It gives a…
Polymorphism means multiple forms that means having more than one function with the same name but with different functionalities. In C++ program there are 2 types of polymorphism, they are:…
In java access modifiers is the accessibility or scope of a field, method, constructor, or class. The access specifiers are used to define how the variables and functions can be…
C++ programming language is one of the oldest and most efficient language that still continues to dominate the realm of programming. For every beginner wants to know about the advantages…
Structure Class Structure is a collection of different types of data type Class is a group of common objects that share common properties and relationships. By…
C vs C++ C C++ C programming language was developed by Dennis Ritchie C++ programming language was developed by Bjarne Stroustrup It is a structural programming…