So, a pop quiz. Suppose you write a C++ program using class B provided in a library, like so:
#include "some-header.h"
int main() {
B* p = new B();
return 0;
}
The snippet above compiles and links just fine. So the snippet below should build too, right? Mind you, the base class is not doing anything sneaky. In particular, it does not have a
(
Read more... )