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.
我正在阅读一些代码:
extern class MyClass : BaseClass { ... } MyInstance;
extern 是指类声明还是实例?
实例。类不能是外部的。
尽管代码有异味 - 此片段表明该实例的真实声明使用单独的类定义。坏,坏主意 - 定义类两次。