What are Virtual functions in C++ ?
Virtual function is a member function which is re-defined by a derived class and declared within a base class. When you...
What is exception handling in C++ ?
In C++ exception handling is a process to handle runtime errors. If we perform exception handling, so the normal flow of the...
What is namespace in C++ ?
In C++ namespace is a logical division of the code which is designed to stop the naming conflict. In C++ namespace defines...
What is Virtual Inheritance ?
During multiple inheritance Virtual Inheritance is used to remove the ambiguity of base class, when a derived class inherits...
What is Template in C++ ?
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...
What is Stack in C++ ?
Stack is an abstract data structure that contains a collection of elements. It implements the Last In First Out (LIFO)...
What is Pointers in C++ ?
Pointers are symbolic representation of addresses and it enables a program to simulate call-by-reference as well as to...
What is Overloading ?
If a single object behaves in many ways, it is known as overloading. It provides different versions of the same function...
What is bool data in C++ ?
In C++ Boolean data type is defined using the bool keyword. This servers as an easy and convenient datatype for programmers...
What is a Virtual Destructor ?
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...
What is Iterator in C++ ?
An iterator is an object like a pointer that points to an element inside the container. Iterator can use to move through the...
What is destructor in C++ ?
In C++ destructor is an instance member function which is invoked automatically whenever an object is going to be destroyed....
What is Constructor in C++ ?
In C++ constructor is a special type of member function of a class which initializes objects of a class. Constructor is...
What is C++ ?
It is an object-oriented programming language that can be used to create high-performance applications. In 1985 C++ was...
What are the different types of polymorphism in C++ ?
Polymorphism means multiple forms that means having more than one function with the same name but with different...
What are the C++ Access Modifiers ?
In java access modifiers is the accessibility or scope of a field, method, constructor, or class. The access specifiers are...
What are the advantages and disadvantages of C++ ?
C++ programming language is one of the oldest and most efficient language that still continues to dominate the realm of...
Difference between Class and Structure
Structure Class Structure is a collection of different types of data type Class is...
Difference between C and C++
C vs C++ C C++ C programming language was developed by Dennis Ritchie...
Print pyramid triangle in C++
Answer : To print pyramid triangle in C++, we have use two for loop...