When you add the variables on p. 200, you must make them public in order to avoid errors and compile. Thus:
public var coordinate: …
public var title: …
public var subtitle: …
When you add the variables on p. 200, you must make them public in order to avoid errors and compile. Thus:
public var coordinate: …
public var title: …
public var subtitle: …
Thank you for this. Couldn’t figure out what was wrong and the source files were not helping.
I’m glad that I was able to help.
The given code for this Chapter, 05, takes ‘public’ from the class and the variables.
what do you mean? it gave errors until ‘public’ was added