import java.util.*;
/**
 * Class Equipo
 */
public class Equipo {
  //
  // Fields
  //
  private int cantidad;
  private int color;
  private String nombre;
  private boolean activo;
  
  //
  // Constructors
  //
  public Equipo () { };
  
  //
  // Methods
  //
  //
  // Accessor methods
  //
  /**
   * Set the value of cantidad
   * @param newVar the new value of cantidad
   */
  private void setCantidad ( int newVar ) {
    cantidad = newVar;
  }
  /**
   * Get the value of cantidad
   * @return the value of cantidad
   */
  private int getCantidad ( ) {
    return cantidad;
  }
  /**
   * Set the value of color
   * @param newVar the new value of color
   */
  private void setColor ( int newVar ) {
    color = newVar;
  }
  /**
   * Get the value of color
   * @return the value of color
   */
  private int getColor ( ) {
    return color;
  }
  /**
   * Set the value of nombre
   * @param newVar the new value of nombre
   */
  private void setNombre ( String newVar ) {
    nombre = newVar;
  }
  /**
   * Get the value of nombre
   * @return the value of nombre
   */
  private String getNombre ( ) {
    return nombre;
  }
  /**
   * Set the value of activo
   * @param newVar the new value of activo
   */
  private void setActivo ( boolean newVar ) {
    activo = newVar;
  }
  /**
   * Get the value of activo
   * @return the value of activo
   */
  private boolean getActivo ( ) {
    return activo;
  }
  //
  // Other methods
  //
  /**
   */
  public void generar(  )
  {
  }
}
Tablero
import java.util.*;
/**
 * Class Tablero
 */
abstract public class Tablero {
  //
  // Fields
  //
  private int tamaño;
  private int color;
  
  //
  // Constructors
  //
  public Tablero () { };
  
  //
  // Methods
  //
  //
  // Accessor methods
  //
  /**
   * Set the value of tamaño
   * @param newVar the new value of tamaño
   */
  private void setTamaño ( int newVar ) {
    tamaño = newVar;
  }
  /**
   * Get the value of tamaño
   * @return the value of tamaño
   */
  private int getTamaño ( ) {
    return tamaño;
  }
  /**
   * Set the value of color
   * @param newVar the new value of color
   */
  private void setColor ( int newVar ) {
    color = newVar;
  }
  /**
   * Get the value of color
   * @return the value of color
   */
  private int getColor ( ) {
    return color;
  }
  //
  // Other methods
  //
  /**
   */
  public void iniciar(  )
  {
  }
  /**
   */
  public void empatar(  )
  {
  }
  /**
   */
  public void salir(  )
  {
  }
}
Pieza
import java.util.*;
/**
 * Class Pieza
 */
public class Pieza {
  //
  // Fields
  //
  protected boolean activa;
  protected int posicion;
  
  //
  // Constructors
  //
  public Pieza () { };
  
  //
  // Methods
  //
  //
  // Accessor methods
  //
  /**
   * Set the value of activa
   * @param newVar the new value of activa
   */
  protected void setActiva ( boolean newVar ) {
    activa = newVar;
  }
  /**
   * Get the value of activa
   * @return the value of activa
   */
  protected boolean getActiva ( ) {
    return activa;
  }
  /**
   * Set the value of posicion
   * @param newVar the new value of posicion
   */
  protected void setPosicion ( int newVar ) {
    posicion = newVar;
  }
  /**
   * Get the value of posicion
   * @return the value of posicion
   */
  protected int getPosicion ( ) {
    return posicion;
  }
  //
  // Other methods
  //
  /**
   */
  public void mover(  )
  {
  }
  /**
   */
  protected void capturar(  )
  {
  }
}
Reina
/**
 * Class Reina
 */
public class Reina extends Pieza{
  //
  // Fields
  //
  
  //
  // Constructors
  //
  public Reina () { };
  
  //
  // Methods
  //
  //
  // Accessor methods
  //
  //
  // Other methods
  //
  /**
   */
  public void mover(  )
  {
  }
}Comparando mi código con el código autogenerado, se puede apreciar que es practicamente igual, en lo único que varía es que el código autogenerado utiliza métodos set y get.
 








