You only need parentheses if you need to cast the value returned by stack.top() to a Type that has the method getX().

For example, in GUI coding an event has a getSource() method that returns...