upcasting : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

upcasting
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:

http://mindprod.com/jgloss/upcasting.html

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

J:\mindprod\jgloss\upcasting.html
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.

IP:[65.110.21.43]
Your face IP:[3.235.243.45]
You are visitor number