Microsoft Word OpenIssuesInOO. doc


Block structure and multiple inheritance



Download 1,28 Mb.
Pdf ko'rish
bet23/51
Sana29.08.2021
Hajmi1,28 Mb.
#158917
1   ...   19   20   21   22   23   24   25   26   ...   51
Bog'liq
OpenIssuesInOO

Block structure and multiple inheritance 

Block structure can sometimes be used as an alternative to multiple inheritance. In 

Reference [Øst90] it is shown how a common use of multiple inheritance for modeling 

windows with titles and borders may be handled using block structure. Since a window may 

have a title, a border or both, the following multiple inheritance class hierarchy is often 

used: 



Window

WindowWithTitle                                WindowWithBorde

WindowWithTitleAndBorder

 

This window hierarchy may be described using nested patterns: 



Window: 

 

(#  Title: (# ... #); 



 

 

Border: (# ... #); 



   ... 

 #); 


aWindow: @ Window(# T: @Title; B: @Border #) 

The descriptions for title and border are made using nested patterns. For a given window

like  aWindow, a title object and a border object may be instantiated. For example if two 

titles are needed, two instances of Title are made.  




Download 1,28 Mb.

Do'stlaringiz bilan baham:
1   ...   19   20   21   22   23   24   25   26   ...   51




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