You are on page 1of 13

C++ - Object Oriented Programming [Basic Version]

Developed By

Bjarne Stroustrup

What is C++?
C++ is an extension of C. Prior to 1983, Bjarne Stroustrup added features to C and formed what he called "C with Classes". He had combined the Simula's use of classes and objectoriented features with the power and efficiency of C. The term C++ was first used in 1983.

Advantage of C++
C++ was designed for the UNIX system environment. Stroustrup found that Simula had features that were very helpful for large software development, but the language was too slow for practical use With C++ programmers could improve the quality of code they produced and reusable code was easier to write.

Versions of C++
Year 1979 1983 1998 2003 2007 2011 C++ Standard Informal name C with Classes C++ [18] C++98 [17] C++03 [16]C++TR1 [15]C++11

ISO/IEC 14882:1998 ISO/IEC 14882:2003 ISO/IEC TR 19768:2007 ISO/IEC 14882:2011

New Features of C++ [not in C]


Casts Flexible Declarations struct' and 'union' Tags The :: Operator 'new' and 'delete References

Language Basics
Tokens, identifiers & operators Naming conventions Iostream.h file Input and Output operators Cascading of I/O operators

Classes & Objects


Class is Blue print of Object. Class will decide structure & Behavior of an Object. Object is any real world entity having well defined structure and Behavior. Object is an instance of class.

Characteristics of an Object
State Identity Behavior Responsibility

Object Oriented Programming


Abstraction Encapsulation Inheritance Polymorphism

Advantage of OOP
Data Security Modularity Extensibility Scalability

Streams
I/O Streams File I/O Streams Exception Handling

Thank You

13

You might also like