— Scott McNealy, Sun Microsystems Chairman, President and ceo



Download 40,57 Mb.
Pdf ko'rish
bet224/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   220   221   222   223   224   225   226   227   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

230
 
chapter 8
1)
2)
3)
4)
5)
Given:
public interface Foo { }
public class Bar implements Foo { }
public interface Vinn { }
public abstract class Vout implements Vinn { }
public abstract class Muffie implements Whuffie { }
public class Fluffie extends Muffie { }
public interface Whuffie { }
public class Zoop { }
public class Boop extends Zoop { }
public class Goop extends Boop { }
public class Gamma extends Delta implements Epsilon { }
public interface Epsilon { }
public interface Beta { }
public class Alpha extends Gamma implements Beta { }
public class Delta { }
What’s the Picture ?
(interface)
Foo
Bar
1)
2)
3)
4)
5)
Here’s your chance to demonstrate your artistic abilities. On the left you’ll 
find sets of class and interface declarations. Your job is to draw the associated 
class diagrams on the right. We did the first one for you. Use a dashed line for 
“implements” and a solid line for “extends”.
Exercise
exercise: 
What’s the Picture?


interfaces and 
polymorphism
you are here
4
231
Click
Top
Fee
Clack
Tip
Fi
Foo
Bar
Baz
Zeta
Beta
Alpha
Delta
1
2
3
4
5
Given:
What’s the Declaration ?
1)
2)
3)
4)
5)
public class Click { }
public class Clack extends Click { }
On the left you’ll fi nd sets of class diagrams. Your job is to turn 
these into valid Java declarations. We did number 1 for you 
(and it was a tough one).

Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   220   221   222   223   224   225   226   227   ...   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