Code AnalysisBeginner 60s
Slicing via by-value base parameter
Given `struct B { virtual std::string name(){return "B";} }; struct D : B { std::string name() override {return "D";} };` and `void show(B b){ std::cout << b.name(); }`, what does `D d; show(d);` print?
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.