Click here to Skip to main content
12,953,230 members (53,167 online)
Click here to Skip to main content

Tagged as


Posted 16 Nov 2012

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 12:07 Available Jackie00100
Updates in content. 14 changes had been made.
1 No 16-Nov-12 12: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

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 16 Nov 2012
Article Copyright 2012 by Jackie00100
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid