OBJECT ORIENTED PROGRAMMING (OOP)
OBJECT ORIENTED PROGRAMMING (OOP)
It will certainly be moral to say that object oriented
programming acts as the seventh heaven for the programmers. Till 1970s, object
orientation was just thinking among programmers. But using the object oriented
approach in C++ is just incredible. The prospect to accustom programming to
objects allows the programmer to design various applications and to reuse the
code in a more logical and creative manner. Object- oriented approach reveals a
particular way of viewing about problems and tasks in terms of recognizing and
describing the behavior of the applicable objects. Smalltalk is a classical
example of a pure object-oriented language. C++ incorporates the facilities for
both the object-oriented programming and conventional procedural programming. C++
adjoins many enhancements of its own to fresh up the problems that were present
in the original C language.
Structured
programming can be roughly divided into two categories:
Structured programming is basically dividing a program into
smaller modules that are easier to manage. All of what we have covered up to
this point is part of procedural programming in this the programmer will divide
the program into smaller functions (rather than putting the entire code within
one function). Each function would have its own variables and sharing of
variables between various functions is also possible. What we will see
henceforth is related to object oriented programming (OOP). Large programs were
difficult to handle in procedural programming an=d OOP was developed to reduce
complexity of software development. In C++, OOP is implemented using classes. The
main concepts in OOP are:
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment