Tag Archives: C++

C++ Polymorphism

Polymorphism is one of the most important properties of Object-Oriented Programming, the word polymorphism is made by the combination of two Greek words Poly + morph, poly means “many” and morph means forms and its name resemblance its definition. Polymorphism concept state that there could be more than one function that shares the same name… Read More »

C++ Overloading

In C++, within scope, we can have more than one definition for a Function and operator, which mean using the same function and operator we can perform different tasks, though functions and operators are designed to perform a specific task, but using the concept of overloading we can switch between the definitions of functions and… Read More »

C++ Classes & Objects

C++ is an extension of the C programming language, and the Object-Oriented Programming (OOPs) concept made C to C++. There are many properties of Object Orientation Programming and class & objects are the core fundamentals we use to implement the OOP’s concepts.   Class in C++ A class is a Data Structure and a building… Read More »

C++ Data Structures

Using an Array Data Structure, we can combine many data values of similar data types, but what if we want a data structure which can hold different values of different data types, to solve this problem in C++ we have another Data Structure known as Structure. What is Structure in C++? In C++ the structure… Read More »

C++ References

In C++ we can create a variable which can act as a reference variable to another existing variable, which means both the existing and reference variable has the same value and if there is a change in the existing variable then the change also occurs in the reference variable. Reference vs Pointer variables We often… Read More »

C++ Date & Time

In C++ we do not have a specific Data type to represent the time and date so we inherit the structure and functions from the C programming language. To use data and time in C++ we have a library which can represent data and time in integer format, and to access this library we need… Read More »

C++ Functions

A function is a block of code that is used to perform a specific. In C++ we have at least one function for every program which is main(). By default in C++, we have to make a main() function because the C++ compilers search for the main() function to start the execution. C++ Functions Every… Read More »

C++ Decision Making

Some situation arises in programming where we need to make the decision which block of code should execute and which not. For instance, if there are 3 blocks of code and based on the user input we want to execute only one block of code so for that we use Decision Making statements. C++ Decision… Read More »

C++ Pointers

Pointer in C++ is one of the most confusing and important topics and it plays a vital role in dynamic memory allocation, for a beginner understanding the concept of pointer could be a daunting task, here we have tried to break the concept for you in simple words, so you could have a basic idea… Read More »

C++ Strings

A String is a one-dimensional array of character data types which ends with a null value represented by ‘\0’. The array of character always terminates with a null value, so if there is a character array(string) of size 6 and it has only 5 elements filled, so the 6th place would be a null value.… Read More »