Microsoft Word OpenIssuesInOO. doc


  Support for composition in other languages



Download 1,28 Mb.
Pdf ko'rish
bet18/51
Sana29.08.2021
Hajmi1,28 Mb.
#158917
1   ...   14   15   16   17   18   19   20   21   ...   51
Bog'liq
OpenIssuesInOO

4.1.3.  Support for composition in other languages 

Composition is to some degree supported in object-oriented languages 

• 

Part objects. C++ and Eiffel [Mey88] support part objects. In C++ a class attribute 

may be a instance of another class. In Eiffel it is a property of the class whether or not 

an instance of it is a part object. This means that all instances of a class are either part 

objects or referenced from other objects. They cannot be both. 

 

In BETA a part object may be an instance of any class and a part object may also be 



referenced from other objects. 

 

In BETA a part object may also bind virtual patterns



5

 in the object being instantiated 

and operations in the part object may thus have an effect upon the enclosing object. 

This is possible by combining a part object with block structure and singular objects. 

This feature is a useful alternative to multiple inheritance, which is further discussed in 

section 4.2. 

• 


Download 1,28 Mb.

Do'stlaringiz bilan baham:
1   ...   14   15   16   17   18   19   20   21   ...   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