Can we create derive class object inside base class, and if create instance of child class then what will happen?
When we create instance of derive class from base class, the first time constructor of the base will be invoked and then derive class constructor get called implicitly.
This constructor calling from base to derived and then derived to base repeats until the stack memory is full.
Base -> derived -> base -> derived-> base …….. until stack is full.
Child obj = new Child();