Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Down cast in a derived hierarchy

, 16 Nov 2012 CPOL
Hi people, I've ran into a problem where i wanna downcast a object of a different type to a object longer down in a derived hierarchy, i think the best way is just to show some simple code:class mammal {}class dog : mammal{}class cat : : mammal{}class program{ public main() ...



Compare Revision Minor Date Status Editor
2 - publicly available No 16-Nov-12 18:07 Available Jackie00100
Updates in content. 14 changes had been made.
1 No 16-Nov-12 18:06 Available Jackie00100


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author


United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 16 Nov 2012
Article Copyright 2012 by Jackie00100
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid