Place the types in one of the Type columns, and the Relationships in the Relationship column, to define appropriate has-a and is-a relationships.

Type
Relationship
Type
Place here
Place here
Animal
Forest
Place here
Place here
Rectangle
Place here
Place here
Place here
Place here
Programming Book


Code:

Relationship
Types
is-a
Dog
has-a
Side

Tail

Square

Tree

Book

Java Book

Pen

 

---

這叫拖拉題~請將Code提供的答案填入Place here

看到這種題目...第一個反應...就是"看無"、"亂寫"吧

聽完老師講解後...就...好北七阿

這真的是JAVA的題目嗎...在耍人吧

這個...跟會不會JAVA毫無關係...試著填看看吧

 

 

 

 

答案..........

 

 

 

 

Type
Relationship
Type
Dog
is-a
Animal
Forest
has-a
Tree
Rectangle
has-a
Side
Java Book
is-a
Programming Book

 

意思就是...

Dog is a Animal [狗是動物...]

Forest has a Tree [森林有樹...]

Rectangle has a Side [矩形有邊...]

Java Book is a Programming Book [Java Book是程式書...]


---

 

然後...我覺得我智商變低了.......

看到英文自動變文盲...

其實答案就這麼...嗯......

這真的是SCJP的考題!!!

 

老師解說的很無奈

大學生...

未來的研究生...

真的該找個地洞躲起來了

 

arrow
arrow
    全站熱搜

    PDL 發表在 痞客邦 留言(1) 人氣()