Voici mon constructeur :
Voici maintenant mon appel de création objet de ma class EtudiantUQAM1120
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 public EtudiantUQAM1120(String unNom, String unProgramme, byte unCycle, float [] tabNotes) { nom_complet = unNom; programme = unProgramme; cycle_etude = unCycle; notes = tabNotes; }
EtudiantUQAM1120 eleve2 = new EtudiantUQAM1120("Ben Mig",(byte)2,"Information",{23,23,45,55,55,55,55});
Pour des raisons que j'ignore, j'obtiens un message erreur : «illegal start expression» devant le «{»
Quelqu'un a une solution pour moi ?
Merci
Partager