Error when I try to use class

Hi, anyone can help me with this bug? I have been tried to return the MaxTries but the compiler deems I have a syntax error which I cant figure out.

My class definition is as same as those given by lecture.

Never mind I figure it out. I missed () when I quote the method.

Privacy & Terms