ooad assignment.doc
TRANSCRIPT
-
8/14/2019 ooad assignment.doc
1/3
O.O.A.D ASSIGNMENT
Assingment-1
1. Define and Explain following : 1) Identity
2) Classifiction
3) Inheritance4) Poly orphis .
Assingment-2
1. Differentiate !etween "ttri!#te and association. $hat are association classes% $hen it is#sef#l to odel
"n association as a class%
2. Differentiate the following :
1) "ssociation and "ggregation.
2) "!stract class and Interface
3. Disc#ss &isi!ility concepts in class.
4. Define pac'age . Draw it(s otations.
*. Eli inate ternary "ssociation.
+. Disc#ss with s#ita!le diagra,. Categori-e the following elationship into /enerali-ation0 "ggregation or "ssociation #stify
yo#r answer
1) " co#ntry has a capital city.
2) " file is an ordinary file or a directory file.
3) ile contain records.
4) " polygen is co posed of an ordered set of points.
*) " drawing o! ect is text 0 " geo etrical o! ect or a gro#p
+) " ro#te concepts two cities
,) " st#dent ta'e a co#rse fro a professor.
) $hat is operation o erriding%
5) Prepare a class diagra for the dining philosophers0 there are * philosophers and * for'saro#nd a circ#lar ta!le. each philosophers has access to 2 for's0on !e an either side.
Each for's is shared !y 2 philosophers
-
8/14/2019 ooad assignment.doc
2/3
Each for' ay !e either on the ta!le or in #se !y one philosophers. " philosopher s#tha e 2 for's to eat.
16) Prepare a class diagra for a graphical doc# ent editor that s#pports gro#ping."ss# e that a doc# ent
Consists of se eral sheets. reach sheet contain drawing o! ects and gro#ps. " gro#p issi ply a set of
Drawing o! cets 0 possi!ly incl#ding other gro#ps. " gro#p #st contain at least two
drawing o! ects0" drawing o! ect can !e a direct e !erof at ost one gro#p. /eao etrical o! ectsincl#de circles0 ellipses0rectangles 0lines and s7#ares.
11) Prpare o! ect diag showing at least 16 relationships a ong the following o! ectclasses. Inlc#de associations
"nd 7#alified asscociations0 aggregations0 generali-ations and additional o! ects. "lsoshow attri!#tes and
8perations school0playgro#nd 0principal0school !oard 0classroo 0!oo'0st#dent0teacher0canteen0restroo 0
Co p#ter0des'0chair.
12) $hat is a!starct class % ention its #se can create class !e a s#per class% Ifyes0gi e reason. Create a class
9ierarchy to organi-e the following drin' class: ineral water0wine0alcoholic0nonalcoholic0grape #ice0soda
ears.
-
8/14/2019 ooad assignment.doc
3/3
Assingment-3
1) Difference !etween inheritance and #ltiple inheritance .
2) $hat is operation o er riding ;replace ent). Disc#ss the reasons for o er ride.
Assingment-4
1)