2017-12-24 51 views

답변

-1
interface ISymbol 
{ 
    // some abstract symbol interface. i wont fill it in here but you probably 
    // do want to use an interface since nodes cannot be subclassed off 
    // a node base class and a symbol base class at the same time, etc. 
} 

// and then you do this 
HashMap<String,ISymbol> symbolTable = new HashMap<String,ISymbol>();