Professional Documents
Culture Documents
Introduction
OOP developed by Bjarne Stroustrup at AT&T Bell laboratories in 1980s Combination of Simula67 and C Classes, inheritance, function overloading, and operator overloading are the most important features in C++
Inline functions inline int add(int a, int b) { return (a+b); } Default function arguments
Void myFunction(int a, int b=5, int c=10);
Scope Resolution
An operator :: known as scope resolution operator is used in C++ to access an item outside the current scope.
Comments
C++ supports // comment style in addition to /*.*/ comment style Useful for one line comment