online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class A: def print(self): print("A.print") class B(A): def print(self): print("B.print") class C(A): def print(self): print("C.print") class D(B, C): pass d = D() d.print() #"B.print", but if you change the order of base classes in D, it will yield "C.print"

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue