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
Tyree Clark
11,533 PointsWhat am I missing for this code challenge?
Properties
class Temperature {
var celsius: Double = 0.0
var fahrenheit: Double
init(celsius: Double, fahrenheit: Double) {
self.celsius = celsius
self.fahrenheit = fahrenheit
}
Tyree Clark
11,533 PointsThis is for the object oriented swift computed properties
1 Answer
Ben Brenton
266 PointsNot sure if your code was just copied in wrongly, but you are missing a closing square bracket in the code fragment you have put in your question.
Hope this helps.
Tyree Clark
11,533 Pointsnot sure why it copied like that but I had the closing bracket
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsHi Tyree,
I fixed your code formatting which is the reason for the below comments, you can read more about posting code to the forum at the below link.
https://teamtreehouse.com/forum/posting-code-to-the-forum
As for the question at hand which challenge is this for?