Wikisage, the free encyclopedia of the second generation, is digital heritage

C Plus Plus: Difference between revisions

From Wikisage
Jump to navigation Jump to search
(from C++ (Andrew's version of 18:42, 25 July 2009) as C++ page won't show)
 
m (cat: singular)
 
Line 7: Line 7:
The introduction of classes and the extension of structures (struct) provide the main features for object oriented design namely: encapsulation, inheritance and polymorphism. Classes, structures and unions provide a defined "description" from which objects are created at runtime.
The introduction of classes and the extension of structures (struct) provide the main features for object oriented design namely: encapsulation, inheritance and polymorphism. Classes, structures and unions provide a defined "description" from which objects are created at runtime.


[[Category:Programming languages]]
[[Category:Programming language]]

Latest revision as of 17:19, 14 August 2009

C++ (pronounced "C Plus Plus") is a general-purpose and system-level object-oriented programming language. It is commonly regarded as a middle-level language as it incorporates features of both high-level and low-level programming languages. Bjarne Stroustrup started developement of C++ in 1979 while at Bell Laboratories in Murray Hill, New Jersey. He initially called it "C with Classes" but in 1983 the name was changed to C++. C++ source code is compiled to machine code for the target platform.

Language syntax

C++ is made up of most of C's syntax and includes the C preprocessor also simply called the preprocessor. Added features include classes and objects, references, function and operator overloading, exceptions, templates, namespaces, and an extended supporting operator set.

Classes and objects

The introduction of classes and the extension of structures (struct) provide the main features for object oriented design namely: encapsulation, inheritance and polymorphism. Classes, structures and unions provide a defined "description" from which objects are created at runtime.