val
Triangle
class isn't named properlytotalDegrees
isn't a property of the Triangle
classNice! Since a triangle's angle is always 180, declaring the totalDegrees
property with val
keeps us from changing its value.
Whoops! Might it have to do with the property declared using the val
keyword?