Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdrienne Chan
1,045 PointsI get an error of "expected ';' after method prototype in the Circle.h for the line -(float)area {
I get an error of "expected ';' after method prototype in the Circle.h for the line -(float)area { Then, in main.m, for the line round.radius=25; I get an error saying "property 'radius' not found on object of type 'Circle'"
1 Answer
J.D. Sandifer
18,813 PointsQuestion 1: I haven't gotten that far yet, but in an earlier video the same error appeared because he forgot the parentheses at the end of the main function name. Should it be -(float) area() {
instead for the first one?
Question 2: No idea. I'll check back when I get that far.