Class Block

java.lang.Object
  |
  +--Block
All Implemented Interfaces:
java.io.Serializable

public class Block
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Block(int row, int seat, double price)
          This method is Block constructor.
 
Method Summary
 int getAcross()
          This method is use to get the number of seats in rows for particular block
 float getPrice()
          This method is use to get the price for particular block
 int getRows()
          This method is use to get the number of rows for particular block
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Block

public Block(int row,
             int seat,
             double price)
This method is Block constructor.

Throws:
without - throws exceptions
Method Detail

getRows

public int getRows()
This method is use to get the number of rows for particular block

Returns:
int - number of rows
Throws:
without - throws exceptions

getAcross

public int getAcross()
This method is use to get the number of seats in rows for particular block

Returns:
int - number of seats
Throws:
without - throws exceptions

getPrice

public float getPrice()
This method is use to get the price for particular block

Returns:
float - block price
Throws:
without - throws exceptions