If you have an object created as type MostDerived: The most-derived object of d_obj is an object of type Derived. Again, complete is not synonymous with most-derived.Īlso if I have created an object of Derived like this: Derived d_obj = Derived(), Is the object d_obj is also a "most-derived" object? This is not necessarily a complete object, however, since this could be a class member definition. The most-derived object of b_obj is an object of type Base. So if I have created an object of Base like this: Base b_obj = Base(), Is the object b_obj is "most-derived" object?
If I have created an object of Base like this: Base b_obj = Base(), is the object b_obj a "most-derived" object? Per the question "What does the "most derived object" mean?" I think that (correct me if I am wrong), objects of type "most-derived" class only, like MostDerived, are called "most-derived" objects. I stopped here, I really do not understand the rest of the wording. If a complete object, a member subobject, or an array element is of class type, its type is considered the most derived class An object of a most derived class type or of a non-class type is called a most derived object.įrom the quote what I understand is that a type of a complete object is of "most-derived" class type.