Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ambiguity does not count as ambiguity
#include <iostream> using namespace std; class Interface { virtual void hej() = 0; }; class Base { public: Base(Interface& i): mI(i) { std::cout << "base constructed\n"; } private: Interface& mI; }; class Derived: public Base, public Interface { public: Derived(): Base(*this) { } virtual void hej() override {} }; int main() { // your code goes here Derived d; return 0; }
run
|
edit
|
history
|
help
0
My Window
Build char string (multibyte) with wchar
Chord Note Finder
Full System Specifications version 3
Test
Template
vaska
C++ string format
MSVC_example_fscanf_s_and_chars_wchars
C string literal