Thursday, September 26, 2019
Object Oriented Programming Research Paper Example | Topics and Well Written Essays - 1750 words
Object Oriented Programming - Research Paper Example The research paper "Object Oriented Programming" talks about main concepts and principles of the object oriented programming paradigm and about its application to computer software or computer applications design. In OOP, the represented objects have specific data fields such as rows and columns in the design of databases. These fields are used in OPP as characteristics of an object that is presented through a programming language with object oriented attributes. In addition, objects within object oriented programming are represented via specified methods or procedures which are used to ensure that these objects are orderly and consistent depending on the purpose of the design or programming. When programmers design computer software or computer applications, they achieve this by methods which cause objects to relate or interact with one another. Each object in this form of interaction is referred to as an instance of a particular class of objects. Classes in OOP represent concepts. For example ââ¬Å"Girlâ⬠is a class within which the aforementioned objects fall. This illustrates that a class is used to capture the properties that are shared by objects in the process of object oriented programming. Therefore, classes are normally instantiated from the objects that are represented by a program design. In OOP, classes are visible within the source code of the program and this code is normally not duplicated. Also objects play the role of activating a program that is currently running as a result they occupy memory locations. Furthermore, a set of operations as presented within the class are owned by objects which means that objects in OOP own a copy of specific data that is held within the program. When a specific class within a program is a subtype of another higher level or general class, the subtype class in OOP is said to be inherited from the general class (Hadar and Uri 43). The subclass therefore inherits both member functions and the data members of the base class. In object oriented programming, inheritance particularly refers to the method of reusing a specific code that is held by various objects with an aim of establishing a lower level or subtype class below a general class. The creation of subtypes however depends on the supporting platform of the programming language that is used to design or program the application. The general classes in inheritance are referred to as base classes and it is from these classes that the subtype classes inherit various attributes. Base classes are also referred to as parent classes or super classes (Pefkaros 219). The subclasses that are derived from the parent classes are therefore referred to as child classes or derived classes. This illustrates that the patent and child classes are related within a structure which leads to a hierarchy. Encapsulation is a concept and principle in object oriented programming in which the designer of a program hides the manner in which an object behaves from the approach of implementation. Encapsulation also includes separation of the looks of an object or it appearance from the methods through which its behavior is implemented. Encapsulation emanates from the fact that objects within a program have well defined interfaces (Ramsin and Richard 31). These are the publicly accessible methods and fields. Therefore when information about objects is hidden below or behind a specific interface, it is then said that the design of a program has implemented encapsulation. This situation is also referred to as information hiding. It therefore is notable that in object oriented programming, programmers use interfaces as the most effective way through which behavior of objects are
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.