Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

casting problem

 
Savvy Makol
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kindly somebody explain the difference between upcasting and downcasting.When do we get classcast exception.
 
John Lee
Ranch Hand
Posts: 2545
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don, it might be more useful if you distilled these articles into an answer. I'm a big fan of reading articles, but sometimes people just want their question answered.
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:
i will.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic