Important Of Object Oriented Programming - tccicomputercoaching.com

Page 1

Important Of Object Oriented Programming tccicomputercoaching.com Object-oriented programming (OOP) is a programming model based on the concept of “objects”, and “code”. Object: Which may contain data, in the form of fields, often known as attributes; Code: In the form of procedures, often known as methods. In the class-based object-oriented programming model, “object” refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures.

The first step in OOP is to identify all the objects the programmer wants to manipulate and how they relate to each other, an exercise often known as data modelling. In object oriented programming once object is defined of class type, memory has been allocated as per object. Whatever data member and member functions are declared in class, they all can accessed through only object. Objects communicate with well-defined interfaces called messages. One of the principal advantages of object-oriented programming techniques over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer can


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.