Introduction to c++ programming

Introduction to C++

C++ is general purpose programming language.

C++ is middle level comprises both low level language and middle level language features.

It is developed by bjarne stroupstrup in AT & T bell laboratory in USA.

It is object oriented programming language.

c++ is case sensitive language.

4 pillars of object oriented programming:-

Encapsulation :-

Wrapping of the data into single unit is known as encapsulation.

Abstraction :-

Abstraction means bidding of the data.

Inheritance :-

Deriving new class from base class is called aa inheritance.

Polymorphism :-

It means having one name with multiple form.

Features of object oriented programming

  1. Emphasis is on data rather than procedure.
  2. Programs are divided into what are known as objects.
  3. Data structure are designed such that they characterized the object.
  4. Function that operate on the data of an object are tied together in the data structure.
  5. Data is hidden and cannot be accessed by external function.
  6. Objects may communicate with each other through function.
  7. Implies bottom up approach in program design.
  8. New data and functions can be easily added whenever necessary.

Characteristics of object oriented programming

  1. Objects are basic run time entity in cpp.
  2. The data type of class are abstract data type.
  3. Function is method to access the private data which belongs to same class .
  4. It can encapsulate the data .
  5. C++ strongly support reusability things.
  6. Object may communicate with one another with the help of message passing.
  7. Polymorphism is also main characteristics of oop which provides function overloading and operator overloading.
  8. Abstract which hides the unnecessary information and gives necessary information.
  9. C++ can access the global data type (user defined and in built data type similarly).