current rating is 4.16/5

4.16/5 1

2

3

4

5 (400 ratings) current rating is 3.67/5

3.67/5 1

2

3

4

5 (24 ratings)

Designed by Bjarne Stroustrup James Gosling and Sun Microsystems

Influenced by C, Simula, Ada 83, ALGOL 68, CLU, ML Ada 83, C++, C#, Eiffel, Generic Java, Mesa, Modula-3, Oberon, Objective-C, UCSD Pascal, Smalltalk

Appeared in 1985 1995

Typing Discipline Static, Strong, Unsafe, Nominative Static, strong, safe, nominative, manifest

Garbage Collection No GC available on the C++ standard library (STD). However, STD provides efficient and deterministic ways to manage resource such as object ownership and reference counting. Yes

Major Implementations GNU Compiler Collection, Microsoft Visual C++, Borland C++ Builder, Intel C++ Compiler, LLVM/Clang OpenJDK, many others

Influenced Ada 95, C#, Java, PHP, D, Aikido Ada 2005, BeanShell, C#, Clojure, D, ECMAScript, Groovy, J#, Javascript, PHP, Python, Scala, Seed7, Vala

Usual filename extensions .cc, .cpp, .cxx, .h, .hh, .hpp .java, .class, .jar, .war

Paradigms Multi-paradigm, Object-Oriented, Generic, Procedural, Functional, Meta Multi-paradigm: object-oriented, structured, imperative, generic, reflective, concurrent

Programming-include #include import

Object-oriented Yes Yes

Speed +-5% when compared with C if you know how to make a good use of C++. The performance of C++ and C programs can often be equal, since compilers for both languages are mature. slower than C++

Inline comments delimiter // //

Block comments delimiter /* and */ /* and */

Statement terminators ; Semicolon terminated

code Compiled to native binary executable files compiled to bytecode

Procedural Programming Yes Yes

Functional Programming Partial Yes

Arrays dynamically sized No No

Metaprogramming Yes No

Generic Programming Yes Yes

Reflection No Yes

Developed by Bjarne Stroustrup Oracle Corporation

OOP (Object Oriented Programming) Built in; size and memory layout of objects is deterministic. Virtual function calls can be done without vtable via CRTP. Yes

Multidimensional arrays supported Yes Yes