This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy


■ U N D E R S TA N D I N G   O B J E C T   L I F E T I M E 265



Download 21,46 Mb.
Pdf ko'rish
bet541/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   537   538   539   540   541   542   543   544   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

U N D E R S TA N D I N G   O B J E C T   L I F E T I M E



265

8849CH08.qxd  10/22/07  1:27 PM  Page 265




8849CH08.qxd  10/22/07  1:27 PM  Page 266


Advanced C# Programming

Constructs

P A R T   3

8849CH09.qxd  10/1/07  10:41 AM  Page 267




8849CH09.qxd  10/1/07  10:41 AM  Page 268


Working with Interfaces

T

his chapter builds on your current understanding of object-oriented development by examining

the topic of interface-based programming. Here you learn how to define and implement interfaces,

and come to understand the benefits of building types that support “multiple behaviors.” Along the

way, a number of related topics are also discussed, such as obtaining interface references, explicit

interface implementation, and the construction of interface hierarchies.

The remainder of this chapter is spent examining a number of standard interfaces defined

within the .NET base class libraries. As you will see, your custom types are free to implement these

predefined interfaces to support a number of advanced behaviors such as object cloning, object

enumeration, and object sorting. We wrap up the chapter by examining how interface types can be

used to establish a callback mechanism, allowing two objects in memory to communicate in a

bidirectional manner.




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   537   538   539   540   541   542   543   544   ...   1830




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