The C++ Programming Language
Click below to go directly to a specific section:
Significant Language Features |
Areas of Application |
Related Links |
Printed References |
The C++ programming languages is an extension of C that was developed by Bjarne Stroustrup in the early 1980s at Bell Laboratories. C++ provides a number of features that "spruce up" the C language, but more importantly, it provides capabilities for object-oriented programming.
Significant Language Features
Object-oriented programs are easier to understand, correct and modify. Many other object-oriented languages have been developed, including most notably, Smalltalk. The best features of C++ are:
- C++ is a hybrid language-it is possible to program in either a C-like style, an object-oriented style, or both.
- C++ programs consist of pieces called classes and functions. You can program each piece you may need to form a C++ program. The advantage of creating your own functions and classes is that you will know exactly how they work. You will be able to examine the C++ code.
Areas of Application
C++ provides a collection of predefined classes, along with the capability of user-defined classes. The classes of C++ are data types,which can be instantiated any number of times. Class definitions specify data objects (called data members) and functions (called member function). Classes can name one or more parent classes, providing inheritance and multiple inheritance, respectively. Classes inherit the data members and member functions of the parent class that are specified to be inheritable. Therefore it is mainly used for:
- Software Engineering
- H.M. DEITEL/P.J. DEITEL(1994). C++ How to Program. PRENTICE HALL, Englewood cliffs, New Jersey.
- Robert W. Sebesta, Third edition, (1996). Concepts of Programming Languages. Addison-Wesley Publishing, CA.
The Hello World! program was written with the help of the Hello, World Page!.
Last modified: 03:31 PM on 11/09/1996
This page has been accessed