Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
矩形类:公共虚拟形状
矩形类:公共形状
这两个继承自Shape的类有什么区别??
如果只停留在这两个类Rectangle和Shape. 虚拟继承有助于解决钻石问题。
Rectangle
Shape