EXPLAINATION AND DEFINITION –
Generally, The creation of Object-oriented methods were to help programmers break the barriers like the above ones.. Furthermore, Object-oriented programming took the best ideas of Structured Programming. And also, the combination of those ideas with several new concepts. The result was a different way of organising a program.
In the most general sense, The organisation of a program can be in one of two ways –
- Around its code.. i.e. (what is happening)
- Around its data.. i.e. (who is affecting)
Using only structured programming techniques, the organisation of programs are generally around data. Furthermore, this approach can be thought of as “Code acting on data“. For example, Functions defines a program in a structured Language such as C.
Object-oriented programs work the other way around.. The organisation of programs is around data, with the key principle being “DATA CONTROLLING ACCESS TO CODE“. In an Object-oriented language, we define the data and the routines that permits to act on that data. Therefore, a data type defines precisely what sort of operations we can apply to that data.
Overall, we can say..
” The Object-oriented programming paradigm models the real world well and overcomes the shortcomings of procedural paradigm. Generally, it views a problem in terms of objects and thus, emphasizes on both procedure as well as data. ”
OOP CONCEPTS –
Furthermore, to support the principles of Object-oriented programming, all OOP languages have some concepts which are as follows..
Above are the general concepts of Object-oriented programming.. The seven concepts are,
- MODULARITY (Though, it isn’t in the above picture.. but it one of the most important concepts of OOP)
Each and every concept of Object-oriented programming is unique in itself.. We will be discussing each and every of the concept of OOP in detail in the coming post..
Thus, it was all about OBJECT-ORIENTED PROGRAMMING – A GENERAL INTRODUCTION.. For any information regarding the previous C++ Post.. Click on,