Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Casting

 
D Singh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to get a good grasp on casting for example from an interface to a class or from an array element to an interface etc. Could someone please let me know of a good tutorial or clarify my doubts.
thanks
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would have to be How my Dog Learned Plymorphism
 
Marlene Miller
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I learned about casting from JLS 5.1, especially the sections on widening and narrowing reference conversions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic