Assignment for Object Oriented Programming (OP216) Question1: Discuss the side by side(p) 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 fork A contain instances of class B, this is called A has-a B, this relation usually be through a pointer, reference, or even corporal containment to communicate, this likewise called aggregation. 2. Â Â Â Â Â Â Â Â Purposes: it is re map of software in eliminate oriented programming. 3. Â Â Â Â Â Â Â Â favour: it can compose new call using varied marks, it is able to add new capabilities to exiting objects, so it enables the software passing flexible to suit the change of requirements. 4. Â Â Â Â Â Â Â Â deterioration: because of the extra direct of indirection, this result to Run-time inefficiencies. And the aggregation object demea nor is harder to understand and describe. When implementing good the object relationship also requires metrical attention to alternative management responsibilities. 5. Â Â Â Â Â Â Â Â Example: A line car containing an Engine, a Car object has no additional 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 specialized in the derived class(es). 2.
     Â!   Purposes: it help use to solve some treated problems and make the solution to a greater extent elegant than iodin without it. It is one of the fundamental tools for code reusability. It is also used as aboriginal to interface and design reuse, which is immanent for building robust, extensible software. 3.         vantage: It allows designer and programmer to snuff it and enhance software without all recompilation cost. It is somewhat hidden, new class can be added to the power structure 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