Click here to Skip to main content
12,349,884 members (22,552 online)
Click here to Skip to main content

Tagged as

Stats

1.3K views
Posted

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() ...

Revisions


  

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

License

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

Share

About the Author

Jackie00100
United States United States
No Biography provided

You may also be interested in...

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