OBJECT ORIENTED PROGRAMMING : -
by making divided memory space for each information and functions that may be used as templates for making copies of such modules on demand.
OBJECT ORIENTED APPROACH : -
Object oriented
approach is the approach which is based on the class and object.
For e.g. c++, java, python , c#
ADVANTAGE:
1.
Main advantage of the
object-oriented programming is Re-usability.
2.
Data is hidden and
can not be accessed by external function.
3.
Complexity of the
program can be easily managed.
4.
It is easy to learn
and teach.
5.
Inheritance,
encapsulation, data hiding, overloading are possible in the OOPs.
History Of c++ :-
Developed by Bjarne Stroustroup in 1979. First name of C++ is C with class. The name was change to C++ in 1983.
What is C++ ?
C++ is a kind of object oriented, High
level programming language.
The most useful
facilities that c++ added to c are classes, inheritance, function overloading
and operator overloading.
Differentiation
between c and c++:-
C
|
C++
|
·
C is a procedural language.
·
Extension is “.c “.
·
Return type is void.
·
Inline declaration
not allowed.
(For int i=o…….x)
·
C: structure
Function not allowed.
·
In c , we can use
standard Function.
·
We can call main(),
from another function.
|
·
C++ is an object
oriented language.
·
Extension is
“.cpp”.
·
Return type is int.
·
Inline declaration
is allowed.
·
Function allowed.
·
Standard function
not allowed.
·
We can not call
main function from anoter function.
|