Download OOP C++ note pdf for Engineering TU IOE/POU/KU/POU
Object-oriented Programming (OOP)
OOP is an approach to programming paradigm that attempts to eliminate some of the drawbacks of
conventional programming methods with several powerful new concepts.
The fundamental idea behind object-oriented programming is to combine or encapsulate both data (or
instance variables) and functions (or methods) that operate on that data into a single unit. This unit is called
an object. The data is hidden, so it is safe from accidental alteration. An object’s functions typically provide
the only way to access its data. In order to access the data in an object, we should know exactly what
functions interact with it. No other functions can access the data. Hence OOP focuses on the data portion rather
than the process of solving the problem.
conventional programming methods with several powerful new concepts.
The fundamental idea behind object-oriented programming is to combine or encapsulate both data (or
instance variables) and functions (or methods) that operate on that data into a single unit. This unit is called
an object. The data is hidden, so it is safe from accidental alteration. An object’s functions typically provide
the only way to access its data. In order to access the data in an object, we should know exactly what
functions interact with it. No other functions can access the data. Hence OOP focuses on the data portion rather
than the process of solving the problem.