This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cppexamp/rtti
2024-07-04 19:52:56 +03:00
..
impl.cpp My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00
impl.h My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00
main.cpp My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00
makefile My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00
readme.txt My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00
user.cpp My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00
user.h My portable distribution of Code::Blocks 2024-07-04 19:52:56 +03:00

RTTI Example
------------

to run:         wmake test

output:         The program should display "Test Successful."

Description:    This example illustrates how one can use RTTI to process
                objects on a heterogeneous list. It may not always be
                feasible to use virtual functions, for example, if a base
                class is provided by a third party and can't be altered.
                A user defined derived class may add useful member
                functions that are unknown to the base class and can't be
                accessed without some sort of run time type identification.