B .  Caught: bad_cast exception. Myshape is not mytriangle.
C .  both a & b
D .  none of the mentioned
Answer: Option C
As we can't able to create the dynamic instance for the triangle, So it is arising an exception. Output: $ g++ exs3.cpp $ a.out Can't do the dynamic_cast lor!!! Caught: bad_cast exception. Myshape is not mytriangle.
Submit Your Solution hear: