— Scott McNealy, Sun Microsystems Chairman, President and ceo


Figure out what the class is supposed to do. o



Download 40,57 Mb.
Pdf ko'rish
bet110/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   106   107   108   109   110   111   112   113   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

 
Figure out what the class is supposed to do.
o
 
List the instanc
e variables and methods.
o
 
Write prepcode for the methods. (You’ll see 
this in just a moment.)
o
 
Write test code for the methods.
o
 
Implement the class.
o
 
Test the methods.
o
 
Debug and reimplement as needed.
o
 
Express gratitude that we don’t have to test 
our so-called learning experience app on 
actual live users.
The three things we’ll write for 
each class:
The project status
prep code
A form of pseudocode, to help you focus on 
the logic without stressing about syntax.
test code
A class or methods that will test the real code 
and validate that it’s doing the right thing.
real code
The actual implementation of the class. This is 
where we write real Java code.
To Do:
SimpleDot
Com class
o
write prep c
ode
o
write test co
de
o
write fi nal Ja
va code
SimpleDot
ComGame
class
o
write prep c
ode
write test co
de [no]
o
write fi nal Ja
va code
 prep code test code
real code
This bar is displayed on the next set of pages to tell 
you which part you’re working on. For example, if you 
see this picture at the top of a page, it means you’re 
working on prepcode for the SimpleDotCom class.
 prep code test code
real code
SimpleDotCom class
 prep code
Flex those dendrites.
How would you decide which class or classes 
to build fi rst, when you’re writing a program? 

Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   106   107   108   109   110   111   112   113   ...   555




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