Dynamic Cast

Dynamic Cast

In the C++ programming language, the dynamic_cast operator is a part of the run-time type information (RTTI) system that performs a typecast. Unlike an ordinary C-style typecast, a type safety check is performed at runtime, and if the types are not compatible, an exception will be thrown (when dealing with references) or a null pointer will be returned (when dealing with pointers). In this regard, dynamic_cast behaves like a Java typecast.

Read more about Dynamic Cast:  Example Code

Famous quotes containing the words dynamic and/or cast:

    We Americans have the chance to become someday a nation in which all radical stocks and classes can exist in their own selfhoods, but meet on a basis of respect and equality and live together, socially, economically, and politically. We can become a dynamic equilibrium, a harmony of many different elements, in which the whole will be greater than all its parts and greater than any society the world has seen before. It can still happen.
    Shirley Chisholm (b. 1924)

    You have waited, you always wait, you dumb, beautiful ministers,
    We receive you with free sense at last, and are insatiate
    hence-forward,
    Not you any more shall be able to foil us, or withhold yourselves
    from us,
    We use you, and do not cast you aside—we plant you permanently within us,
    We fathom you not—we love you—there is perfection in you also,
    You furnish your parts, toward eternity,
    Great or small, you furnish your parts toward the soul.
    Walt Whitman (1819–1892)