C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet180/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   176   177   178   179   180   181   182   183   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

office.AreaPerPerson( )

 displays 

the area-per-person of the building defined by 

office

. Each time 



AreaPerPerson( )

 is 


invoked, it displays the area-per-person for the specified object.

There is something very important to notice inside the 



AreaPerPerson( )

 method: The 

instance variables 

Area

 and


 Occupants

 are referred to directly, without use of the dot 

operator. When a method uses an instance variable that is defined by its class, it does so 

directly, without explicit reference to an object and without use of the dot operator. This is 

easy to understand if you think about it. A method is always invoked relative to some object 

of its class. Once this invocation has occurred, the object is known. Thus, within a method

there is no need to specify the object a second time. This means that 


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   176   177   178   179   180   181   182   183   ...   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