C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet426/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   422   423   424   425   426   427   428   429   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

PacketHeader

 is a good choice for a 



struct

 because it contains only a small amount of data 

and does not use inheritance or even contain methods. As a structure, 

PacketHeader

 does 


not incur the additional overhead of a reference, as a class would. Thus, any type of 

transaction record can use 



PacketHeader

 without affecting its efficiency.

As a point of interest, C++ also has structures and uses the 

struct

 keyword. However, 

C# and C++ structures are not the same. In C++, 

struct

 defines a class type. Thus, in C++, 



struct

 and 


class

 are nearly equivalent. (The difference has to do with the default access of 

their members, which is private for 

class

 and public for 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   422   423   424   425   426   427   428   429   ...   1096




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