Object Oriented Approach
Object Oriented Approach
Home
CodingCSS
HTML Ground Javascript SQL Python Java C C++ PHP Scala C#
Jobs
Object Oriented Approach
Whit eboard
Tools
In t he object -orient ed approach, t he focus is on capt uring t he st ruct ure and behavior of
informat ion syst ems int o small modules t hat combines bot h dat a and process. The main
aim of Object Orient ed Design (OOD) is t o improve t he qualit y and product ivit y of
syst em analysis and design by making it more usable.
In analysis phase, OO models are used t o fill t he gap bet ween problem and solut ion. It
performs well in sit uat ion where syst ems are undergoing cont inuous design, adapt ion, and
maint enance. It ident ifies t he object s in problem domain, classifying t hem in t erms of
dat a and behavior.
ADVERTIS EMENT
ADVERTIS EMENT
Objects − An object is somet hing t hat is exist s wit hin problem domain and can
be ident ified by dat a (at t ribut e) or behavior. All t angible ent it ies (st udent ,
pat ient ) and some int angible ent it ies (bank account ) are modeled as object .
Attributes − They describe informat ion about t he object .
ADVERTIS EMENT
ADVERTIS EMENT
Encapsulation
Encapsulat ion is a process of informat ion hiding. It is simply t he combinat ion of process
and dat a int o a single ent it y. Dat a of an object is hidden from t he rest of t he syst em and
available only t hrough t he services of t he class. It allows improvement or modificat ion of
met hods used by object s wit hout affect ing ot her part s of a syst em.
Abstraction
It is a process of t aking or select ing necessary met hod and at t ribut es t o specify t he
object . It focuses on essent ial charact erist ics of an object relat ive t o perspect ive of
user.
Relationships
All t he classes in t he syst em are relat ed wit h each ot her. The object s do not exist in
isolat ion, t hey exist in relat ionship wit h ot her object s.
Inheritance
Inherit ance is a great feat ure t hat allows t o creat e sub-classes from an exist ing class by
inherit ing t he at t ribut es and/or operat ions of exist ing classes.
In polymorphic operat ion, t he operat ion may be carried out different ly by different
classes of object s. It allows us t o manipulat e object s of different classes by knowing
only t heir common propert ies.
ADVERTIS EMENT
ADVERTIS EMENT
It shows clear t ransit ion from design t o Not so clear t ransit ion from design t o
implement at ion. implement at ion.
It is suit able for real t ime syst em, It is suit able for most business
embedded syst em and project s where applicat ions, game development
object s are not t he most useful level of project s, which are expect ed t o
abst ract ion. cust omize or ext ended.
ADVERTIS EMENT
ADVERTIS EMENT
It is defined as set of specificat ions creat ed and dist ribut ed by Object Management
Group. UML is ext ensible and scalable.
The object ive of UML is t o provide a common vocabulary of object -orient ed t erms and
diagramming t echniques t hat is rich enough t o model any syst ems development project
from analysis t hrough implement at ion.
UML is made up of −
Diagrams − It is a pict orial represent at ions of process, syst em, or some part of
it .
Notations − It consist s of element s t hat work t oget her in a diagram such as
connect ors, symbols, not es, et c.
ADVERTIS EMENT
ADVERTIS EMENT
Constructor/Destructor − Creat ing new inst ances of a class and delet ing
exist ing inst ances of a class. For example, adding a new employee.
Query − Accessing st at e wit hout changing value, has no side effect s. For
example, finding address of a part icular employee.
Update − Changes value of one or more at t ribut es & affect st at e of object For
example, changing t he address of an employee.
Uses of UML
UML is quit e useful for t he following purposes −
ADVERTIS EMENT
ADVERTIS EMENT
Static Models
St at ic models show t he st ruct ural charact erist ics of a syst em, describe it s syst em
st ruct ure, and emphasize on t he part s t hat make up t he syst em.
They are used t o define class names, at t ribut es, met hods, signat ure, and
packages.
UML diagrams t hat represent st at ic model include class diagram, object diagram,
and use case diagram.
Dynamic Models
Dynamic models show t he behavioral charact erist ics of a syst em, i.e., how t he syst em
behaves in response t o ext ernal event s.
Dynamic models ident ify t he object needed and how t hey work t oget her t hrough
met hods and messages.
They are used t o design t he logic and behavior of syst em.
UML diagrams represent dynamic model include sequence diagram,
communicat ion diagram, st at e diagram, act ivit y diagram.
ADVERTIS EMENT
ADVERTIS EMENT
Object-Oriented Analysis
This phase concerns wit h det ermining t he syst em requirement s and t o underst and t he
syst em requirement s build a use-case model. A use-case is a scenario t o describe t he
int eract ion bet ween user and comput er syst em. This model represent s t he user needs
or user view of syst em.
It also includes ident ifying t he classes and t heir relat ionships t o t he ot her classes in t he
problem domain, t hat make up an applicat ion.
Object-Oriented Design
The object ive of t his phase is t o design and refine t he classes, at t ribut es, met hods, and
st ruct ures t hat are ident ified during t he analysis phase, user int erface, and dat a access.
This phase also ident ifies and defines t he addit ional classes or object s t hat support
implement at ion of t he requirement .
Prototyping
Prot ot yping enables t o fully underst and how easy or difficult it will be t o implement
some of t he feat ures of t he syst em.
Implementation
It uses eit her Component -Based Development (CBD) or Rapid Applicat ion Development
(RAD).
CODD is an indust rialized approach t o t he soft ware development process using various
range of t echnologies like CASE t ools. Applicat ion development moves from cust om
development t o assembly of pre-built , pre-t est ed, reusable soft ware component s t hat
operat e wit h each ot her. A CBD developer can assemble component s t o const ruct a
complet e soft ware syst em.
RAD is a set of t ools and t echniques t hat can be used t o build an applicat ion fast er t han
t ypically possible wit h t radit ional met hods. It does not replace SDLC but complement s
it , since it focuses more on process descript ion and can be combined perfect ly wit h t he
object orient ed approach.
It s t ask is t o build t he applicat ion quickly and increment ally implement t he user
requirement s design t hrough t ools such as visual basic, power builder, et c.
Incremental Testing
Soft ware development and all of it s act ivit ies including t est ing are an it erat ive process.
Therefore, it can be a cost ly affair if we wait t o t est a product only aft er it s complet e
development . Here increment al t est ing comes int o pict ure wherein t he product is t est ed
during various st ages of it s development .
Get St art ed
Advert isement s
Tutorials Point is a leading Ed Tech company
striving to provide the best learning material on
technical and non-technical subjects.
Affiliates eBooks
Contact Us