POO BlueJ
Résolu
Utilisateur anonyme
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour,
j'ai tout essayé et j'arrive pas à savoir pourquoi ce code ne se compile pas?? y a un probleme avec la methode "super" mais lequel??
public class cheval extends animal
{
private float weight; //horse weight
private String type; //horse type
/**
* Create a horse with default settings for detail information.
*/
cheval()
{
super("(unknown horse)","(unknown number)");
weight="(unknown weight)";
type="(unknown type)";
}
j'ai tout essayé et j'arrive pas à savoir pourquoi ce code ne se compile pas?? y a un probleme avec la methode "super" mais lequel??
public class cheval extends animal
{
private float weight; //horse weight
private String type; //horse type
/**
* Create a horse with default settings for detail information.
*/
cheval()
{
super("(unknown horse)","(unknown number)");
weight="(unknown weight)";
type="(unknown type)";
}