Is it possible to make constructor in derived class which receives reference of the parent class pointing to another child class?
Child ch;
Parent &pr = ch;
Child ch1 = pr;
I guess it might be something like this:
Child(const Parent &pr){
*this = dynamic_cast<Child>(pr);
//Invalid target type 'Parent' for dynamic_cast;
//target type must be a reference or pointer type to a defined class
}