Coding issue in the 3D Buzz Hyperion tutorial.I am work
Posted
by Geno
on Stack Overflow
See other posts from Stack Overflow
or by Geno
Published on 2010-03-24T09:28:29Z
Indexed on
2010/03/24
9:33 UTC
Read the original article
Hit count: 260
I'm following along with the tutorial. And we are currently coding the Item class. I am using the 2008 edition, while the tutorial uses 2005. The code I am having issue with is:
public string Weight { get { return weight; } set { weight = value; } }
earlier in the code, we had:
private int Weight = 1;
as you can see, they are both different variables, int, and string. I'm doing exactly as the tutorial shows, on mine, I get a conversion error, whereas in the tutorial, there are no errors, why is this? I'm doing exactly what the video shows.
© Stack Overflow or respective owner