make compiled languages more oop
Python Result (Expected)
foo from animal
Pruttel
foo from duck
Pruttel
With the Duck
class only overrides foo
methods, the overridden foo
methods is used when Duck().sound()
is called.
Thins are quite different for CPP and Go.
C++ Result (Also Expected)
foo from animal
Pruttel
foo from duck
Pruttel
Go Result
foo from animal
Pruttel
foo from animal
Pruttel