From this definition, one can infer that object-oriented programming consistsof instantiating a number of objects which communicate with one another soas to achieve some desired behaviour. This paradigm is natural with howhumans see the world; as a series of cause-effect relationships, where anaction performed on one object has effects on the objects with which itcommunicates.Object-Oriented Programming (OOP), in computer science, type of high-levelcomputer language that uses self-contained, modular instruction sets fordefining and manipulating aspects of a computer program. These discrete,predefined instruction sets are called
and they may be used todefine variables, data structures, and procedures for executing dataoperations. In OOP, objects have built-in rules for communicating with oneanother. By using objects as stable, preexisting building blocks,programmers can pursue their main objectives and specify tasks from thetop down, manipulating or combining objects to modify existing programsand to create entirely new onesObject-oriented programming (OOP) languages, such as C++ and Java, arebased on traditional high-level languages, but they enable a programmer tothink in terms of collections of cooperating objects instead of lists of commands. Objects, such as a circle, have properties such as the radius of the circle and the command that draws it on the computer screen. Classesof objects can inherit features from other classes of objects. For example, aclass defining squares can inherit features such as right angles from a classdefining rectangles. This set of programming classes simplifies theprogrammer’s task, resulting in more “reusable” computer code. Reusablecode allows a programmer to use code that has already been designed,written, and tested. This makes the programmer’s task easier, and it resultsin more reliable and efficient programs.
The programming challenge
The programming challenge was seen as how to write the logic, not how todefine the data. Object-oriented programming takes the view that what wereally care about are the objects we want to manipulate rather than thelogic required to manipulate them.
Object-Oriented Programming Concepts
TALHA Maqsood| Object Oriented Programming Languages