Why do objects of type B (subclass of A) in a vector of type A behave as type A?
3177
What is object slicing?
147050
How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?
156985
Question Concerning Vectors
56294
cast list to list where B inherits A
37050
What is the difference between (type)value and type(value)?
54934
What is this weird colon-member (" : ") syntax in the constructor?
54656
How do I sort a std::vector by the values of a different std::vector?
76210
What does it mean if a Python object is "subscriptable" or not?
70199
When do I use a dot, arrow, or double colon to refer to members of a class in C++?
107515
Why don't structs support inheritance?
127599
Odd situation for "cannot reference this before supertype constructor has been called"
121780
std::vector versus std::array in C++
55420
How does the chain rule work for functions from vectors to vectors?
48827
Inheritance in Java - creating an object of the subclass invokes also the constructor of the superclass. Why exactly?
46787
A way of casting a base type to a derived type
137886
Pointers and assignment, how does it work with different types?
58016
auto it = vector.begin() resulting type is not convertible to const_iterator