class A {
public:
void show() {
cout << "Base Class\n";
} };
class B : virtual public A {};
class C : virtual public B {};
class D : public B, public C {};
-> use virtual in base class inheritance to avoid diamond problem.
Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...
No comments:
Post a Comment