package fr.codegym.task.task05.task0519;
/*
On tourne en rond, là
*/
public class Cercle {
int centreX = 0;
int centreY = 0;
int rayon = 0;
int largeur = 0;
int couleur = 0;
public void Cercle(int centreX, int centreY, int rayon) {
this.centreX = centreX;
this.centreY = centreY;
this.rayon = rayon;
}
public void Cercle(int centreX, int centreY, int rayon, int largeur) {
this.centreX = centreX;
this.centreY = centreY;
this.rayon = rayon;
this.largeur = largeur;
}
public void Cercle(int centreX, int centreY, int rayon, int largeur, int couleur) {
this.centreX = centreX;
this.centreY = centreY;
this.rayon = rayon;
this.largeur = largeur;
this.couleur = couleur;
}
//écris ton code ici
public static void main(String[] args) {
}
}
Why the imperatives are not checked ?
Discussion en cours
Commentaires (1)
- Populaires
- Nouveau
- Anciennes
Tu dois être connecté(e) pour laisser un commentaire
Gellert Varga
24 mai 2020, 18:51
It would help if you shared your code so that it looks exactly what you sent for verifying.
There is a function/button that needs to be ticked and then the system will automatically attach the whole program you wrote. This way I can also see which condition/requirement was green and which was red. This helps to me.
- But now, i can see what is the mistake!
A constructor is not 'void'!
Just this way:
0