C++ Introduction

C++ is a general-purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming.
C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.
C++ was developed by Bjarne Stroustrup of AT&T Bell Laboratories in the early 1980s, and is based on the C language. The “++” is a syntactic construct used in C (to increment a variable), and C++ is intended as an incremental improvement of C. Most of C is a subset of C++, so that most C programs can be compiled (i.e. converted into a series of low-level instructions that the computer can execute directly) using a C++ compiler. C++ is a superset of C, and that virtually any legal C program is a legal C++ program.

Object-Oriented Programing

C++ supports the object-oriented Programing, the four major pillars of object-oriented Programing in C++ are:

  • Inheritance
  • Polymorphism
  • Encapsulation
  • Abstraction

Advantage of C++

  • Portable language(can be used irrespective of os)
  • Support both object oriented as well as a structured programming language
  • It is easy to maintain and modify existing code as new object can be created with small differences to existing ones
  • Useful for complex type of programming.
  • Easy to debug.