C++ Tutorial

Learn C++ Tutorial

This C++ tutorial helps beginners and professionals to learn C++ easily.

Index Title
Tutorial C++ History
Tutorial C++ Installation
Tutorial C++ First Program
Tutorial C++ cin and cout
Tutorial C++ Data type
Tutorial C++ Variable
Tutorial C++ operator
Tutorial C++ Keywords
Tutorial C++ OOPs Concepts
Tutorial C++ If
Tutorial C++ Nested if
Tutorial C++ If-else
Tutorial C++ If-else-if
Tutorial C++ Switch
Tutorial C++ Break
Tutorial C++ Continue
Tutorial C++ Goto
Tutorial C++ For loop
Tutorial C++ While loop
Tutorial C++ Do while loop
Tutorial C++ Call by Value
Tutorial C++ Call by Reference
Tutorial C++ Recursion Function
Tutorial C++ Inline function
Tutorial C++ Friend function
Tutorial Single dimension array
Tutorial Two dimension array
Tutorial C++ String
Tutorial Single level Inheritance
Tutorial Multilevel Inheritance
Tutorial Multiple Inheritance
Tutorial Hierarchical Inheritance
Tutorial Hybrid Inheritance
Tutorial C++ Polymorphism
Tutorial C++ Overloading
Tutorial C++ Overriding
Tutorial C++ Virtual Function
Tutorial C++ Pointer
Tutorial C++ this pointer
Tutorial C++ Exception Handling
Tutorial C++ Constructor
Tutorial Default Constructor
Tutorial Parameterize Constructor
Tutorial Copy constructor
Tutorial Constructor Overloading
Tutorial Destructor
Tutorial C++ Opening file
Tutorial C++ Writing to file
Tutorial C++ Reading file
Tutorial C++ Close file

C++ Introduction

C++ is an object oriented programming language. It was developed by Bjarne Stroustrup at AT&T Bell Laboratories. It is superset (extension) of C programming language.

Depending upon features supported by programming languages, they are classified into two different categories:

  1. Object based programming languages
  2. Object oriented programming languages

Object based programming language

The language that supports programming using objects are called object based programming language. Important features of object based programming languages are:

  • Data encapsulation
  • Data hiding
  • Operator overloading
  • Automatic initialization

Object oriented programming language

Object oriented programming supports the features of object based programming along with inheritance and dynamic binding.

C++ fully supports object-oriented programming. To understand Object-Oriented programming, we need to know the concept of major pillar of it:

  1. Object
  2. Class
  3. Data abstraction
  4. Encapsulation
  5. Polymorphism
  6. Inheritance
  7. Dynamic binding
  8. Message passing

C++ is not pure object oriented language. Object oriented means working with object and class, but in C++ program can be written without using class.

C++ Usages

C++ program are applied in large number of different sector. Some of them are as follow:

  • Windows System
  • Real-time system
  • Object-oriented database
  • Artificial Intelligence
  • Device driver etc.

C++ Example

We have given online editor option with each C++ example. So, you can edit any example and see the changed output.

Output:

Prerequisite

To learn C++, you must have the knowledge of computer fundamentals only.

Audience

This C++ tutorial is written to help beginners and professionals both.