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 trial

C# C# Objects Methods Return Values

Error

I used two computers during this course, think some of the code got deleted when i used my other pc. Got so many errors, what should i do?

https://gyazo.com/c09e5e738d5bb661bac5cf8346c8ed1b

1 Answer

Patrik Horváth
Patrik Horváth
11,110 Points

yout problem is STYLING, you have totaly mess in your code, if i know Class name HAVTE TO stratt with Big Letter also Constructor HAVE TO have same name as class if you wanted make constructor

just read your errors and you will see ":" "{" "}" on line ... so just go to this line ( almost always problem is in line before )

also missing return if you dont have VOID method / function and you have "string" for example so you have to RETURN string

Seems like my code got a little bit messy between my pc's. Thank you for your comment Patrik, i solved it now.