C++ Overview

This tutorial has been prepared for all types of learners whether they are a novice and want to start from scratch or for those who want to learn advanced concepts in C++. In this tutorial, it has been considered that the reader has knowledge about computer programs and programming languages.  If you are not aware … Read more

C++ Code Structure

For understanding the structure of the C++ code, first consider the following snapshot of the code. Output: Hello World The code consists of seven lines.  Each line of the code is called statement of expression. Each C++ statement ends with semicolon(;). We explain each statement of the code. #include <iostream.h>; The first line is #include <iostream.h>;. … 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++ Friendship and Inheritance

C++ Friendship is the feature of declaring classes or functions with friend keyword. The classes or functions declared with friend keyword have a relationship of friendship with the class. C++ Inheritance Inheritance and abstraction are major features of object oriented programming OOP. In OOP there are following access specifiers that help achieve inheritance. Public Protected … Read more

Categories C++