Monday, September 9, 2019

Object Oriented Programming is the main drain in project development Essay

Object Oriented Programming is the main drain in project development time due to its complexity - Essay Example Abstraction is simply defined as disregarding the extraneous functions, properties, or features and emphasizing the ones that are significant to the related program. Abstraction refers to taking the essential parts of the program and incorporating them into the program while putting away the parts of the program that may not be essential in the process of program development. Encapsulation in simple terms is summing up or rather putting together. Encapsulation is the way of assembling into a single object the data and the operations that affect the program’s data. Inheritance refers to the process of developing new and unique classes from the ones that have been existence. Inheritance also makes the new classes to acquire the attributes and behaviour of the previous classes. (Svenk 2003, p232.) The new attributes and behaviour of the former classes are incorporated into the new classes so as to suit their requirements. Inheritance may be either single or partial. Polymorphism is the capability of the program developed to perform similar operations on different types of objects. Each operation is implemented in a way that is apt to the objects that are in use in the program. Object oriented programming bundles procedures and data structures so that an object which is an illustration of class is able to operate on its own data structure. Polymorphism degree that is allowed varies and is of three major flavours referred to as parametric polymorphism, function overloading and sub-typing polymorphism. Parametric polymorphism allows the description of a class or function to be conceptual with respect to some set of types and is predominantly essential when describing abstract data type objects such as lists, arrays, queues, stacks, hash maps trees, graphs, and sets. Data stored in all these abstract data types is stored in a neutral way and is specified parametrically thus allowing the re-usability of the data. Parametric polymorphism allows a single function definition to be used with arguments of varying types. Parametric polymorphism is particularly useful in structural modelling due to the substantial number of parametric polymorphic modules. Function overloading allows the program to modify a function computation based on the types of its arguments as well as allowing a single function to be defined with many signatures. Function overloading helps improve the re-usability by increasing the applicability of the components involved thereof. It helps improve the applicability of the program in different fields since it can be applied in various modules seeing that the components are re-usable. The natural extension of functional overloading is to allow a component to identify various type signatures for its ports in the structural domain. Sub-typing is in such a manner that it allows a value of one type to be used in a place where a value of another type is a requirement so long as the first type is a subtype of the latter. This means that in function call, it is possible for data whose types are subtypes of the function types to be

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.