--------------------Configuration: JDK version 1.3 <Default>------------------------------------------------ C:\Program Files\Xinox Software\JCreator\MyProjects\BlackJack Game\Blackjack.java:15: cannot resolve symbol symbol : constructor Hand (DeckOfCards) location: class Hand super(d); ^ 1 error
And this is the code:
public class Blackjack extends Hand { //-------------------------------------------------------------------- //Holds the score keeping class for the BlackJack game //-------------------------------------------------------------------- public Blackjack(DeckOfCards d) { super(d); }
public int score() { int scoretotal=0; int face=10; int ace=11; for(int count=0;count<Handofcards.size();count++) { Card temp=(Card)Handofcards.elementAt(count); if(temp.value==10) { scoretotal+=face; } else if(temp.value==1) { scoretotal+=ace; } else scoretotal+=temp.value; } return scoretotal; }