public class Block implements java.io.Serializable{
private int rows, seats;
private float blockPrice;
/** This method is Block constructor.
* @param int row - number of rows, int seat - number of seats per row, double price - pricing for particular block
* @return No return for constructor
* @exception without throws exceptions
*/
public Block(int row, int seat, double price){
rows = row;
seats = seat;
blockPrice = (float)price;
}
/** This method is use to get the number of rows for particular block
* @param No parameter
* @return int - number of rows
* @exception without throws exceptions
*/
public int getRows(){ return (rows);
}
/** This method is use to get the number of seats in rows for particular block
* @param No parameter
* @return int - number of seats
* @exception without throws exceptions
*/
public int getAcross(){ return (seats);
}
/** This method is use to get the price for particular block
* @param No parameter
* @return float - block price
* @exception without throws exceptions
*/
public float getPrice(){ return (blockPrice);
}
}