.

Sunday, April 14, 2013

Object Oriented Programming In C++

Assignment for Object Oriented Programming (OP216) Question1: Discuss the following characteristics in these areas: definition, purposes, weakness and strengths, and with an appropriate example.

Has- A relationship: 1.         Definition: In the relation of gradation A and trend B, if instances of class A contain instances of class B, this is called A has-a B, this relation usually be through a pointer, reference, or even physical containment to communicate, this likewise called aggregation.

2.         Purposes: it is re map of software in disapprove oriented programming.

3.          favour: it can compose new style using varied objects, it is able to add new capabilities to exiting objects, so it enables the software passing flexible to suit the change of requirements.

4.          damage: because of the extra direct of indirection, this result to Run-time inefficiencies. And the aggregation object behavior is harder to understand and describe. When implementing good the object relationship also requires careful attention to alternative management responsibilities.

5.         Example: A railway car containing an Engine, a Car object has no special privilege with its contained Engine object, An object of Car operates the Engine object only through its interface or member function.

Inheritance: 1.         Definition: It implies generalization-specialization from base class to derived class. The base class is a general class whose behavior can be specialized in the derived class(es).

2.

Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!

        Purposes: it help use to solve some tough problems and make the solution more elegant than one without it. It is one of the fundamental tools for code reusability. It is also used as key to interface and design reuse, which is immanent for building robust, extensible software.

3.         Advantage: It allows designer and programmer to snuff it and enhance software without any recompilation cost. It is somewhat hidden, new class can be added to the hierarchy without affecting any client.

4.         Disadvantage: there are more levels...

If you want to get a full essay, order it on our website: Ordercustompaper.com



If you want to get a full essay, wisit our page: write my paper

No comments:

Post a Comment