菱形继承就是继承的方式长得像个菱形而已,它是多继承中一种比较特殊的存在;
比如下面的类关系之间的设计:
student 和 worker 类 继承了 person 类,而 undergraduate 继承了 student 和 worker 这两个类;这个继承的图很像菱形,咋们说它是菱形继承;