Author Dusty Phillips Reviewers



Download 2,95 Mb.
Pdf ko'rish
bet31/183
Sana20.07.2022
Hajmi2,95 Mb.
#831085
1   ...   27   28   29   30   31   32   33   34   ...   183
Bog'liq
python3-oop

[
 20 
]
Likely, these iterations would all occur in an initial meeting with the librarian. Before 
this meeting, however, we can already sketch out a most basic design for the objects 
we have concretely identified:
+Search()
+ISBN
+Authors
+Title
+Subject
+DDS number
+Name
Catalog
Author
Book
Armed with this basic diagram and a pencil to interactively improve it, we meet 
up with the librarian. They tell us that this is a good start, but libraries don't serve 
only books, they also have DVDs, magazines, and CDs, none of which have an ISBN 
or DDS number. All of these types of items can be uniquely identified by a UPC 
number though. We remind the librarian that they have to find the items on the 
shelf, and these items probably aren't organized by UPC. The librarian explains that 
each type is organized in a different way. The CDs are mostly audio books, and they 
only have a couple of dozen in stock, so they are organized by the author's last name. 
DVDs are divided into genre and further organized by title. Magazines are organized 
by title and then refined by the volume and issue number. Books are, as we had 
guessed, organized by the DDS number.
With no previous object-oriented design experience, we might consider adding 
separate lists of DVDs, CDs, magazines, and books to our catalog, and search each 
one in turn. The trouble is, except for certain extended attributes, and identifying the 
physical location of the item, these items all behave as much the same. This is a job 
for inheritance! We quickly update our UML diagram:
Catalog
LibraryItem
Author
Book
+ISBN
+Authors
+Title
+Subject

Download 2,95 Mb.

Do'stlaringiz bilan baham:
1   ...   27   28   29   30   31   32   33   34   ...   183




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish