Title: Apply superclass references to subclass objects.
Course: Java Programming (Oracle) (10055) > Section: Using Inheritance

Application should include Java member variables that can access a hidden member variable through the superclass. Sample code of a superclass and subclass pair follows:

class SuperDouper {
Number aNumber;
}
class SubbieDubbie extends SuperDouper {
Float aNumber;
}