E
eotgibym
I am new to java (currently using C#). I am trying to learn java and I
am having a little difficulty in creating and using a property. Here
is a sample from C#:
private int _myValue;
public int myValue
{
get { return _myValue; }
set { _myValue = value; }
}
how would I do this in java? Any help is appreciated.
am having a little difficulty in creating and using a property. Here
is a sample from C#:
private int _myValue;
public int myValue
{
get { return _myValue; }
set { _myValue = value; }
}
how would I do this in java? Any help is appreciated.