Life is like a Markov chain,
         your future only depends on what you are doing now,
                               and independent of your past.
摘要: A web browser lets a user request a resource. The web server gets the request, finds the resource, and returns something to the user. The browser's ot 阅读全文
posted @ 2018-03-14 23:29 Hu_Yan 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 单一继承的特点是单纯的树结构,继承关系单纯。 多重继承有以下两个优点: 很自然地做到了单一继承的扩展; 可以继承多个类的功能。 多重继承会导致下列 3 个问题。 结构复杂化 优先顺序模糊 功能冲突 因为多重继承有多个父类,所以当不同父类中有相同的方法时就会产生冲突。 从大的方面来看,编程语言可以分为 阅读全文
posted @ 2018-03-14 22:06 Hu_Yan 阅读(123) 评论(0) 推荐(0) 编辑