Boa noite pessoal! Sou novo aqui no fórum e estou desesperado para encontrar algum erro neste código (se houver), podem me ajudar? Obrigado!
public class Lanche {
double preco;
public Lanche (double umPreco)
{ preco = umPreco;
}
}
public class CachorroQuente extends Lanche {
String tipo;
public CachorroQuente (double p, String t) //constructor 1
{ tipo = t;
super(p);
}
public CachorroQuente (double p) //constructor 2
{ super(p);
tipo = ?tradicional?;
}
public CachorroQuente (double p, String t) //constructor 3
{ super(p);
tipo = t;
}
public CachorroQuente (double p, String t) //constructor 4
{ super.Lanche(p);
tipo = t;
}
}