Page 868 - AP Computer Science A, 7th edition
P. 868

20. (C) You can declare a reference of type Player. What you cannot do is construct an object of type Player. The following declarations are therefore legal:
SmartPlayer s = new SmartPlayer(); Player p1 = s;
Player p2 = new HumanPlayer();
































































































   866   867   868   869   870