You need to declare the method signature to take in parameters before passing them.


public Card(String cardName)
{
// constructor code
}