
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
C++ Programming Language Features
C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. It is a superset of C, and that virtually any legal C program is a legal C++ program. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. Following are some of the features of C++ that make it stand out among other programming languages −
- Multi-paradigm language − C++ is a language that supports procedural, object-oriented and generic programming. This makes it very versatile.
- Use of pointers and references − C++ supports pointers and references that allow the user to deal directly with the memory and gives all the control to the programmer. This makes it very suitable for low-level tasks and very complex projects.
- Statically Typed − A language is statically typed if the type of a variable is known at compile time. For some languages, this means that you as the programmer must specify what type each variable is. The main advantage here is that all kinds of checking can be done by the compiler, and therefore a lot of trivial bugs are caught at a very early stage.
- C++ allows you to specify more than one definition for an operator for different types(objects?) which is called operator overloading. This allows users to treat even very complex types as built-in types.
- An interface describes the behavior or capabilities of a C++ class without committing to a particular implementation of that class. The C++ interfaces are implemented using abstract classes and these abstract classes should not be confused with data abstraction which is a concept of keeping implementation details separate from associated data.
- Multiple Inheritance is a feature of C++ where a class can inherit from more than one classes. The constructors of inherited classes are called in the same order in which they are inherited. The destructors are called in reverse order of constructors. Multiple inheritances allow the object to be of multiple types and hence makes real-world modeling in the program very easy.
- Using ternary operators as lvalues
- The auto keyword that does type deduction automatically without needing the programmer to interfere.
There are many more features supported by the C++ language. Building an exhaustive list of such features is not possible. Take a look at the docs to discover more such features on your own!
- Related Articles
- Rust Programming Language – Big Features
- Key features of the Swift programming language?
- Major features of C# programming
- C Programming Language Standard
- Basics of C++ Programming Language?
- Comments in C++ Programming Language
- What is C++ programming language?
- A C Programming Language Puzzle?
- Limitations of C programming language
- Why C++ is the Best Programming Language?
- What are macros in C programming language?
- What are the advantages of C++ Programming Language?
- Why files are needed in C programming language?
- Explain monolithic and modular programming in C language
- Explain array of pointers in C programming language

Advertisements