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.
我将如何展示 A 类继承了指向 B 类的指针向量?我会有一个 Vector 或 B 类的继承箭头吗?
不存在“A 类将某些资源继承给 B 类”之类的东西。任何一个类 B 都继承自类 A - 在这种情况下,B专门化了 A(或者,A泛化了B);或者 A 类和 B 类共享一个资源——在这种情况下,它称为聚合。