说明Is-a,has-a,as-a的语义区别
来源:百度知道 编辑:UC知道 时间:2024/06/20 11:50:03
说明Is-a,has-a,as-a的语义区别以及在面向对象编程语言中的表示机制。
Is-a表示的是“XX是什么”
has-a表示的是“XX具有什么样的属性”
as-a表示的是“XX与YY属于同类”
不一定对,仅供参考!
C++高级编程书上写的还算详细,迅雷上下载六十多页
45. He has four sons, () is a pianist as she is.
This has to be made on a paper as it now lookes as if it is tourism
She has a friend whose mother is a doctor.
In a word与as it has been said above
She has worked as a secretary for four years.
Success is not nearly as good a teacher as failure.
Henry is not so much a writer as a reporter
as a scientist,he is great a sucess
He is not so much a writer as a reporter
Mr.Green has three sons.One is a worker,_____is a teacher,and_____ is a docter