what is get and set methods of class
I m new for OOP concept see this is my class, How this class will return values???
package poker
{
import com.smartfoxserver.v2.protocol.serialization.SerializableSFSType;
public class SeatInfo implements SerializableSFSType
{
private var _seats:Array;
private var _buyInLow:int;
private var _buyInHigh:int;
public function SeatInfo(){
}
public function get seats():Array{
return _seats;
}
public function set seats(seats:Array):void{
this._seats = seats;
}
public function get buyInLow():int
{
return _buyInLow;
}
public function set buyInLow(buyInLow:int):void
{
this._buyInLow = buyInLow;
}
public function get buyInHigh():int
{
return _buyInHigh;
}
public function set buyInHigh(buyInHigh:int):void
{
this._buyInHigh = buyInHigh;
}
public function toString():String
{
var str:String="seatinfo";
str += "amtlow" + ": " + _buyInLow + "amthig" + ": " + _buyInHigh + " :\n";
if (_seats != null)
for each (var seat:Seat in _seats)
str += "seat :" + seat.seatId +"\n"
return str;
}
}
}