All > Technology > Programming > Java
A cast towards an object's ultimate super type - that is, `up' the inheritance hierarchy towards the Object class, for instance
// Upcast from VariableController to HeaterController VariableController v; ... HeaterController c = v;
See downcast. Java's rules of polymorphism mean that an explicit upcast is not usually required.- Browse Related Terms: abstract, aggregation, class inheritance, has-a relationship, Hash Function, hierarchy, implements clause, inheritance, inheritance hierarchy, interface inheritance, is-a relationship, multiple inheritance, sibling sub classes, single inheritance, sub class, Super, upcast