NO Idea, why the base string get return instead of Derived, is that becasue vector copied only base object from the dervied object?
3177
What is object slicing?
95621
Why do constructors not return values?
86435
Do I need to explicitly call the base virtual destructor?
129581
Does C++ pass objects by value or reference?
137225
Accessing derived class property members from base class object in CSharp
60221
Can I call a base class's virtual function if I'm overriding it?
48204
Why can a constructor only return an object?
18850
How can I create objects while adding them into a vector?
125799
c++ vector pointer to base class, and access to multiple derived classes methods
15263
In Java, how do I call a base class's method from the overriding method in a derived class?
26731
Where does the 'override' qualifier go with trailing return types?
66336
Why copy constructor is not called in this case?
155563
When calling super() in a derived class, can I pass in self.__class__?
150506
Propagating 'typedef' from based to derived class for 'template'
35227
How to "return an object" in C++?
39222
Is there a difference between return myVar vs. return (myVar)?
903
How to call a parent class function from derived class function?