File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/br/ufpb/FactoryMethod Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
public class BrasilPizzaBase extends PizzaBase {
4
4
5
5
@ Override
6
- Pizza criarPizza ( String tipoPizza ) {
6
+ public Pizza criarPizza ( String tipoPizza ) {
7
7
8
8
if (tipoPizza .equals ("Cheese" )){
9
9
return new BrasilPizzaBaseCheese ();
Original file line number Diff line number Diff line change 3
3
public class ItaliaPizzaBase extends PizzaBase {
4
4
5
5
@ Override
6
- Pizza criarPizza ( String tipoPizza ) {
6
+ public Pizza criarPizza ( String tipoPizza ) {
7
7
8
8
if (tipoPizza .equals ("Cheese" )){
9
9
return new ItaliaPizzaBaseCheese ();
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ public Pizza infoPizza( String tipoPizza ){
11
11
pizza .comentario ();
12
12
return pizza ;
13
13
}
14
- abstract Pizza criarPizza ( String tipoPizza );
14
+ public abstract Pizza criarPizza ( String tipoPizza );
15
15
}
You can’t perform that action at this time.
0 commit comments