Object-oriented programming is a "programming language model organized [mainly] around" object and data (Rouse Margaret). Object-oriented programming centers around the objects we want to "manipulate" more than the "logic needed to operate them (Rouse). Sometimes we want to manipulate objects from the real world such as a record or a registry, which are not described in Python, we can create classes and subclasses for them. And this process is OOP.
The first step in OOP is to make sure the what are the objects that need to be manipulated and the connections among them, which is called "data modeling" (Rouse). After the class of the identified object is created, the programmer will then design all the necessary methods that help manipulate the object inside the class. Sometimes the object needs more than one classes and subclasses, but that depends on how the programmer wants to manipulate the object.
The first step in OOP is to make sure the what are the objects that need to be manipulated and the connections among them, which is called "data modeling" (Rouse). After the class of the identified object is created, the programmer will then design all the necessary methods that help manipulate the object inside the class. Sometimes the object needs more than one classes and subclasses, but that depends on how the programmer wants to manipulate the object.
Citation:
Rouse, Margaret. "What Is Object-oriented Programming (OOP)? - Definition from WhatIs.com." SearchSOA. N.p., n.d. Web. 04 Mar. 2015.
No comments:
Post a Comment