Quote:
Originally Posted by plasticsinfo
Hii, friends ..good morning.
What is use of Oops(Object Oriented Programming) in C++?
|
That is what C++ is all about. You use it to do object oriented programming.
If you just wanted to write procedural programs then you would use C rather than C++ because C++ is C with the additions needed to be able to write OOP.
The advantages to writing OOP with C++ are the same as writing OOP in any other programming language - it makes it easier to break big programs up into manageable sections and to reuse code in multiple programs - by defining objects that not only contain all of the data associated with a particular object but also all the code to handle all the different things you can do with that object.