2009年2月9日 星期一

第47題

Place the Types in one of the Type columns, and the Relationships in the Relationship column, to defineappropriate has-a and is-a relationships:

答案:
Dog is-a Animal
Forest has-a Tree
Rectangle has-a Side
Java Book is-a Programming Book



-----------------------------------
參考:6-5 繼承

沒有留言:

張貼留言