30-01-2013, 01:45 PM
C++
C++.ppt (Size: 377 KB / Downloads: 22)
It is a expanded version of ‘c’
It is invented by Bjarne Stroutstrup in the year 1980 at bells laboratory
C program will become complex after 25000 to 100,000 lines of code.
C++ allow the programmer to manage larger and more complex program.
C++ supports Object Oriented Programming referred as OOPs concept.
Highest performance system software is constructed using C++.
object oriented programming
OOPs concept is used to accommodate the increasing complexity of the program. In some projects the structured approach is no longer works perfect, the solution for the problem is Object-Oriented programming technique, thus OOPs concept was invented.
Object-Oriented Programming takes almost all the best ideas of structured programming and it combines with several new concepts.
Data hiding
In C++ data and member functions can be declared as public, private and protected group. The implementation details can be hidden by using a principle called as Data Hiding
Data Encapsulation
The internal data of a class are separated from the defined class and they are placed within the member function in capsule.
Encapsulation is the grouping of data and objects into an package to avoid misuse of important data.
Classes are used to manage big programs
FRIEND FUNCTIONS
C++ allows the common function to be made friendly with both the classes, thereby allowing the function to have access to the private data of a class.
The function declaration should be preceded by the keyword friend
It can be declared either in the private or public part of the class.