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



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

Understanding Interface Types

To begin this chapter, allow me to provide a formal definition of the interface type. An interface is

nothing more than a named set of 

abstract members. Recall from Chapter 6 that abstract methods

are pure protocol in that they do not provide a default implementation. The specific members

defined by an interface depend on the exact behavior it is modeling. Yes, it’s true. An interface

expresses a 



behavior that a given class or structure may choose to implement. Furthermore, as you

will see in this chapter, a class (or structure) can support as many interfaces as necessary, thereby

supporting (in essence) multiple behaviors.

As you might guess, the .NET base class libraries ship with hundreds of predefined interface

types that are implemented by various classes and structures. For example, as you will see in Chap-

ter 22, ADO.NET ships with multiple data providers that allow you to communicate with a particular

database management system. Thus, unlike COM-based ADO, under ADO.NET we have numerous

connection objects we may choose between (SqlConnection, OracleConnection, OdbcConnection,

etc.).

Regardless of the fact that each connection object has a unique name, is defined within a dif-



ferent namespace, and (in some cases) is bundled within a different assembly, all connection

objects implement a common interface named IDbConnection:




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   538   539   540   541   542   543   544   545   ...   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