Teach Yourself Java in 21 Days



Download 5,76 Mb.
Pdf ko'rish
bet6/54
Sana30.12.2021
Hajmi5,76 Mb.
#97759
1   2   3   4   5   6   7   8   9   ...   54
Bog'liq
LearnJava

Day

4

Working with Objects

61

Creating New Objects .............................................................................. 62

Using new ............................................................................................ 63

What new Does ................................................................................... 64

A Note on Memory Management ........................................................ 64

Accessing and Setting Class and Instance Variables ................................... 65

Getting Values ..................................................................................... 65

Changing Values .................................................................................. 65

Class Variables ..................................................................................... 66

Calling Methods ....................................................................................... 67

Class Methods ..................................................................................... 69

References to Objects ............................................................................... 70

Casting and Converting Objects and Primitive Types .............................. 71

 Casting Primitive Types ...................................................................... 71

 Casting Objects .................................................................................. 72

Converting Primitive Types

to Objects and Vice Versa ................................................................. 73

Odds and Ends ......................................................................................... 73

Comparing Objects ............................................................................. 74

Copying Objects .................................................................................. 75

Determining the Class of an Object ..................................................... 76

The Java Class Libraries ............................................................................ 76

Summary .................................................................................................. 77

Q&A ........................................................................................................ 78

030-4 FM

1/29/96, 8:11 PM

10



xi


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   54




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