C++ Functions

C++ Function is a piece of code that performs specific tasks. Functions can run multiple times by calling them in code. They may or may not have a return value. Any C++ code must have at least one function. In C++ programming language functions provide code reusability. There are two types of functions in C++ … Read more

C++ Structures

C++ Structures store variables having different data types. For instance, n C++ programming language, user sometimes faces a situation where he needs to store a collection of various types of data in a single entity. Arrays provide the functionality to store data having same data types. Whereas for saving data of different data types, Structures … Read more

C++ Functions Overloading

In C++ Functions Overloading, two or more than two functions can have same name with different number and/or type of parameters. For example, the names of the functions below are same but the number and type of arguments is different. This phenomenon is called function overloading. In the above example, the two functions having the … Read more

C++ Object Oriented Programming

In C++ OOP stands for Object Oriented Programming. As the name suggests, in Object Oriented Programming, a programmer works with objects. Objects are main entities of OOP that contain both data and functions. Contrary to the procedural programming, classes and objects provide an interactive way of programming for user. Procedural programming confines the user to … Read more

C++ Classes and Objects

C++ classes and objects are the main components of object oriented programming. Classes are user defined that contain methods and attributes. An object is blue print of the class. Class contains the properties of that object. For example, vehicle is a class that contains the definition for all types of vehicles. The types of vehicles … Read more

C++ Inheritance

C++ object oriented programming provides the feature of C++ inheritance using classes. Inheritance is the phenomenon of inheriting some or all members of a class by another class. Members can be variables and functions. Inheritance works between classes. The classes in inheritance are: Base class or Parent class Derived class or Child class The relationship … Read more

C++ Abstraction

C++ Abstraction is one of the most important features of C++ object oriented programming. Abstraction means to hide some features of the code and display only necessary information to user. Data abstraction provides the capability to hide implementation details of the data and show only needed information for user interaction to the outside world. Data … Read more

C++ Polymorphism

C++ Polymorphism is one of the most important feature of Object Oriented Programing OOP. In the word Polymorphism, poly means many and morph means form. Polymorphism means the phenomenon of having many forms. In C++ programming language, C++ polymorphism refers to the phenomenon where there are multiple classes in a code and classes relate to … Read more

C++ Templates

C++ templates are one of the most powerful features of C++ Programming language. Templates allow programmers to create generic programs. This means that programmer can create a single function or a class to work as a template and then use it in multiple codes with different data sets. C++ Templates are like algorithms or containers … Read more

Categories C++