Xcode 'GetMaxTries is a private member of FBullCowGame

I’m trying to follow along but can’t run

here is a screenshot.

Myt first attempt at a fix wast to update my code as it is in the repository.

You’ve declared GetMaxTries under private section it should be in the public section. i.e.

class FBullCowGame
{
public:
    //code
    int GetMaxTries();
private:
    //not in here
};

Privacy & Terms