If I make a vector of pointers of type of some defined class and put a pointer to an object of type of an inherited one of the first one in it, wont the pointer pointing to next address be changed to point to shifted address because of existence of new data members in the inherited class pointed by the previous one.
so If I defined an array with new of type of the base class and then put an object of type of the driven class, how would compiler deal with the modification of the start of the address of the next pointer. shouldn't it be shifted or something like that to make some bytes available for the previous one.