What is C++
It is not a surprise that developers write computer programs to solve specific problems. These programs may range from a single line to thousand and thousand lines of codes. In order to do this, the developer must first figure out the problem to solve and the appropriate computer language to use. There are a number of programming languages and the choice will depend on the developer himself as well as the advantages of the language over the others.
One of the mostly taught and used languages is the C++ programming language. The C++ is a high level programming language which is an extension of the C language. It is widely taught in a number of schools and institutions worldwide. This is because learning C++ comes with many benefits.
The benefits of learning C++
Before getting started with C++ programming, it is important to first know and understand the benefits associated with learning C++;
- Firstly, C++ is a cross-platform language. This means that C++ is independent of a particular operating system. It can be implemented in multiple operating systems. It is important to develop a cross-platform software so that it can run in a variety of devices. C++ runs on a number of platforms such as Windows, Mac, and UNIX operating systems.
- C++ is a high level programming language. A high level programming language is one which is closer to human language than the machine language.
- It is an easy to learn language. Since C++ is a high level language, it is easy to learn.
- Lastly, C++ is object oriented programming (OOP) language. Rather than procedural programming, it is important to adopt the object oriented approach while writing your programs. Object oriented programming involves the creation of objects. Each object is characterized by its behavior and attributes. The four main principles of the object orientated programming are;
- Encapsulation
- Data abstraction,
- Inheritance, and
- Polymorphism.
We will learn more about the OOP in the progressive chapters.
Since we have now learnt what the C++ programming language is and its benefits, we are now ready to get started with C++. Consider the next topic, Getting started with C++.