Call a method of subclass in Java
- by eyecreate
If I have a base class
Base thing = null;
of which there is a subclass
class Subclass extends Base
and I instigate it as
thing = new Subclass
how would I call a method that is specifically in Subclass, but not in Base?
ex.
Base has only method()
Subclass has method() and specialMethod()
the method specialMethod() is the one I want to call.