Ok, I have this prototype written by someone else in C #, and I'm trying to put it in Objective-C. Now I have not had a formal experience with C #, so I do not know everything about it yet. I understand what the first three variables are, but I'm having problems with what the fourth and fifth lines do (c_data). Is the fourth declaration a method, and then the fifth, defining it or what happens? Thank you for your help!
public class c_data {
public double value;
public int label;
public int ID;
public c_data() { }
public c_data(double val) {
value = val;
}
}
source
share