This type of casting called upcasting is always safe.
An object of C can be cast to either A or B.
You should however use dynamic_cast 'cause it will check if the casting is valid.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: _Superman_ Search: Search took 0.03 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |