Sie sind auf Seite 1von 6

C++ PROGRAMMING

Introduction
C++ is a middle-level programming language developed by
Bjarne Stroustrup in 1979 at Bell Labs.

C++ runs on a variety of platforms, such as Windows, Mac

OS, and the various versions of UNIX.

C++ is a statically typed, compiled, general purpose, casesensitive, free-form programming language that supports procedural, object-oriented, and generic programming. C++ is a superset of C, and that virtually any legal C program is a legal C++ program.

C++ can be used to build a variety of systems such as


editors, compilers, databases, communication systems etc.

Object-Oriented Programming
C++ fully supports object-oriented programming, including the
four pillars of object-oriented development Encapsulation Data hiding Inheritance Polymorphism

Procedure Oriented Programming


More emphasis is on procedure

Object Oriented Programming


More emphasis is on object (Object refers to an entity ie. Conceptual representation e.g. date, student, Complex number etc.) Only functions have top down approach. But they are called according to users request Data hiding is possible Inheritance is allowed for reuse and extension Programming is done in unpredictable environment e.g. Internet/network programming, GUI (Window programming) etc There is a encapsulation for biding data and functions together

Strictly Top down approach No data hiding or security Reusability of code by using functions only More useful in close system i.e. predictable systems

There is no any logical relationship between data and functions

Das könnte Ihnen auch gefallen