A<u> dynamic caste</u> casting mechanism should be employed if you want to safely change (cast) a pointer type for meaning to a different object in an inheritance hierarchy.
<h3>What is dynamic type casting?</h3>
The dynamic type cast transforms a pointer (or reference) to one class T1 into a pointer (reference) to another class T2 . T1 and T2 must be part of the same order, the classes must be accessible (via public derivation), and the modification must not be ambiguous.
<h3>What is casting mechanism?</h3>
Casting methods involve the use of molten material, usually metal. This molten material is then poured into a mold cavity that takes the form of the completed part. The molten material then cools, with heat naturally being extracted via the mould, until it solidifies into the desired shape.
To learn more about dynamic caste, refer
brainly.com/question/12634265
#SPJ4