Basic Concept of C++ programming language

 


C++ is an object-oriented language, an extension of C programming. C++ is a case-sensitive and free-form programming language that supports object-oriented, procedural, and general programming.

Supports seven different styles of C++ programming in a multi-paradigm language. In which developers can choose any style. General purpose language C++ can be used to develop games, desktop apps, operating systems, etc. Object-Oriented C++ lets you divide complex problems into smaller sets using the object.

Object-Oriented Programming (OOPs)

The main purpose of OOPs C++ programming is to introduce the concept of object orientation in the C programming language. Where everything is represented as an object and is actually referred to as an object-oriented programming language. Object means real word. Object-oriented programming is a method of designing programs using classes and objects. It simplifies software development and maintenance by providing some concepts like: object, class, legacy, polymorphism, abstraction, encapsulation.

There are four main pillars of OOPs used in C++: Legacy, Polymorphism, Abstraction, Encapsulation.

  1. Inheritance
  2. Polymorphism
  3. Encapsulation
  4. Abstraction

C++ standard libraries

Standard C++ programming is divided into three main parts:

o Core libraries include data types, variables and literals etc.

o The standard library includes functions, files, etc.

o The Standard Template Library (STL) contains a set of methods for manipulating the data structure.

Use of c++

C can be used to develop a variety of secure and robust applications using the C programming language, such as: Windows application, client-server application, device drivers, embedded firmware, etc.

C++ program

          File: main.cpp
  • #include <iostream>  
  • int main() {  
  •    cout << "C++ Programming Demo: ";  
  •    return 0;  
  • }  

Output: C++ programming Demo:

C++ is one of the thousands of programming languages ​​we use to develop software. The C++ language was developed by Bazaar Strostrup in 1980. It is similar to the C programming language but has some additional features like exception handling, object-oriented programming, etc.

Advantages

  • C++ is a simple and portable structured programming language.
  • It supports OOPs features
  • It provides high-level abstraction
  • C++ is more compatible with the C.

Disadvantages

  • That is not secured as compared to other programming languages like Java.
  • That can’t support garbage collection.
  • It is difficult to debug as well as complex web applications.

Learn More: Types 0f loop in C++

    

 

Post a Comment

0 Comments