Assignment for Object Oriented Programming (OP216) Question1: Discuss the spare-time activity characteristics in these areas: definition, purposes, weakness and strengths, and with an appropriate example. Has- A relationship: 1. Â Â Â Â Â Â Â Â explanation: In the relation of gradation A and trend B, if instances of physique A contain instances of class B, this is called A has-a B, this relation ordinarily be through a pointer, reference, or even personal containment to communicate, this likewise called aggregation. 2. Â Â Â Â Â Â Â Â Purposes: it is re map of software in refuse oriented programming. 3. Â Â Â Â Â Â Â Â favour: it can compose new entitle using varied determinations, it is able to add new capabilities to exiting objects, so it enables the software passing flexible to suit the change of requirements. 4. Â Â Â Â Â Â Â Â terms: because of the extra direct of indirection, this result to Run-time inefficiencies. And the aggregation o bject conduct is harder to understand and describe. When implementing good the object relationship also requires thorough attention to alternative management responsibilities. 5. Â Â Â Â Â Â Â Â Example: A railroad line car containing an Engine, a Car object has no fussy privilege with its contained Engine object, An object of Car operates the Engine object only through its interface or member function. heritage: 1. Â Â Â Â Â Â Â Â Definition: It implies generalization-specialization from base class to derived class. The base class is a general class whose behavior can be change in the derived class(es). 2.
 !        Purposes: it help use to solve some uncompromising problems and make the solution to a greater extent elegant than unity without it. It is one of the fundamental tools for code reusability. It is also used as underlying to interface and design reuse, which is immanent for building robust, extensible software. 3.         profit: It allows designer and programmer to snuff it and enhance software without whatever 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, visit our page: write my paper
No comments:
Post a Comment