package packModelo;
public abstract class FactoryBarcos {

	private static FactoryBarcos miFactoryBarcos;

	private FactoryBarcos() {
		// TODO - implement FactoryBarcos.FactoryBarcos
		throw new UnsupportedOperationException();
	}

	public static FactoryBarcos getFactoryBarcos() {
		// TODO - implement FactoryBarcos.getFactoryBarcos
		throw new UnsupportedOperationException();
	}

	/**
	 * 
	 * @param pTipo
	 */
	public void crearBarco(String pTipo) {
		// TODO - implement FactoryBarcos.crearBarco
		throw new UnsupportedOperationException();
	}

}
@@ -101,24 +101,25 @@
 yBarcos;%0D%0A%0D%0A
+%09
 %09private Fac
@@ -140,101 +140,8 @@
 %0D%0A%09%09
-// TODO - implement FactoryBarcos.FactoryBarcos%0D%0A%09%09throw new UnsupportedOperationException();
 %0D%0A%09%7D
@@ -197,36 +197,52 @@
 () %7B%0D%0A%09%09
-// TODO - implement 
+if (miFactoryBarcos == null) %0D%0A%09%09%09mi
 FactoryB
@@ -250,12 +250,15 @@
 rcos
-.get
+ = new 
 Fact
@@ -270,53 +270,37 @@
 rcos
+();
 %0D%0A%09%09
-throw new UnsupportedOperationException()
+return miFactoryBarcos
 ;%0D%0A%09
@@ -352,12 +352,13 @@
 lic 
-void
+Barco
  cre
@@ -388,97 +388,293 @@
 %0D%0A%09%09
-// TODO - implement FactoryBarcos.crearBarco%0D%0A%09%09throw new UnsupportedOperationException()
+Barco unBarco = null;%0D%0A%09%09if (pTipo.equals(%22Fragata%22))%0D%0A%09%09%09unBarco = new Fragata();%0D%0A%09%09else if (pTipo.equals(%22Destructor%22))%0D%0A%09%09%09unBarco = new Destructor();%0D%0A%09%09else if (pTipo.equals(%22Submarino%22))%0D%0A%09%09%09unBarco = new Submarino();%0D%0A%09%09else %0D%0A%09%09%09unBarco = new Portaaviones();%0D%0A%09%09return unBarco
 ;%0D%0A%09
@@ -679,8 +679,10 @@
 %0A%09%7D%0D%0A%0D%0A%7D
+%0D%0A

Update FactoryBarcos.java