Sei sulla pagina 1di 2

1.How Does Object Oriented Approach Differ From Traditional Approach?

Ans:1.Traditional Approach Views software as a collection of programs and isolated data.


>Object oriented approach focusses on objects which combine data and functionality.
2.Top Down traditional approach supports absttraction at the function level
>Object Oriented Approach supports abstraction at the Object Level resulting in higher
level of abstraction.
3.The Traditional Approach to software development requires different styles and
methodologies for each step in the process.
>Object oriented approach on the other hand,usus same style and methodologies for each step
like analysis ,design , programming etc.
4.In traditional Approach Moving from one phase of development to other is difficult.
>Object oriented approach provides seamless transition from one phase to another.
5.In Traditional Approch if a change is done to a part of the subsystem or system the entire
system gets affected.
>In Object oriented approach, the routines and attributs within the class are held together
tightly and therefore changing one class doesnot have any impact on other classes.this
encourages good programming technique and clear design.
6.Traditional ap[proach doesnot support reusability.
> Object Oriented approach promotes re-usability of code by inheritance which is a technique
which allows claases to be built from each other .
7. Traditional App[roach doesnot model real-world problem domain
 OO Approach are modeled under real world problem domain.
8.Traditional Approach ios either data centric(you think of how to structure the data) or
algorithm centric(you think of an algorithm to accomplish a task).The programmer is the only
active entity.
>In OO Approach both algorithm and data are packed together as objects.All objects are
active entities and act as helpers.

17.Write a note on :Objects,Object Persistence,Object


Identity,State,Behavior,Metaclasses,Multiplicity,Assocition,Composition,Stereotype,Qualifier
s,Note,Model Constraint,Coupling and Cohesion?
Ans:Objects:Object means a combination of data and logic that represents some real world
entity.eg:Car.the “data” part of this object would be its name, colour,cost,horsepower etc.The
logic part would be a collection of programs.(show mileage,stop,go).

Object persistence:Objects that are explicitly created can exist for a period of time equal to
the duration of the process for which they were created.This characteristic of objects is called
Object persistence.
Note: 1.an object can persist for a longer duration beyond process session boundaries if they
are stored in file or database.
2.An object can be retrieved in another application and it will have same state and
relationship to other objects as at the time it was saved.
3.The lifetime of an object can be explicitly terminated.
4.After an object is deleted ,it becomes inaccessible and its storage area is reclaimed but its
identity can never be used again

Metaclass: A class of classes is called metaclass.All classes are instance of metaclass.


Eg: Consider a class as a dictionary of methods to perform all kinds of task.This can be
declared in the name metaclass.metaclasses are used by the compiler .Eg:metaclass In small
talk meta classes handle messages to classes.

Potrebbero piacerti anche