3
I created these lines of code in a Java exercise ...
public class Pizza {
...
public Pizza (String nomeDestaPizza, String[] arrayIngredientes) {
...
}
}
public static void main(String[] args) {
...
Pizza pizza1 = new Pizza("americana", "molho de tomate", "mussarela", "presunto", "tomate", "azeitona");
...
}
On the line I created an instance of the Pizza class (pizza1) this error message is displayed in the Eclipse IDE:
Multiple markers at this line
- Line breakpoint:Home [line: 7] - main(String[])
- The constructor Pizza(String, String, String, String) is Undefined.
Someone would know what’s going on and how to fix it?