upcasting : Java Glossary


Doing a cast from a derived class to a more general base class. The cast is nugatory, which is the 50 cent way of saying it is not necessary but it won’t hurt, e. g. Dog d = (Dog) aDalmatian; Most people will stare blankly at you if you use the word upcast. Just use cast. The official term used in the JLS (Java Language Specification) for an implied upcast is widening reference conversion.

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number