must implement the inherited abstract

must implement the inherited abstract - Java - Programmation

Marsh Posté le 13-04-2006 à 21:34:50    

Bonsoir,
 
Voici donc mon pb :
 
Panel must implement the inherited abstract
 
 
public class Panel extends JFrame implements CoinMachineListener, CoffeeMachineListener, Names  
{
...
 
 
public interface CoinMachineListener
{
 public abstract void stateChanged(Object source, String state, String state2);
}
 
 
...
 private void notifyStateChanged()
 {
  for(Iterator iter = this._ListenerCoinMachine.iterator(); iter.hasNext() ; )  
  {
   CoinMachineListener listener = (CoinMachineListener) iter.next();
   listener.stateChanged(this, this._EtatCredit, this._EtatMoney);
  }
 }  
...
 
voila des morceaux de mon code
 
c koi ki beug?
 
:'(
 
merci davance

Reply

Marsh Posté le 13-04-2006 à 21:34:50   

Reply

Marsh Posté le 13-04-2006 à 21:41:46    

T'as déclaré des méthodes dans tes interfaces des méthodes que tu n'as pas implémenté dans ta classe.
 
Apprends à coder, vas faire le tuto Java Sun, apprends à réfléchir, le seul bug ici c'est un bug dans l'interface chaise-clavier.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 13-04-2006 à 22:40:59    

Dorian BAC+4 a écrit :


c koi ki beug?


sans déconner, j'en ai marre du sms style !!! [:heink]
ça va finir en ban systématique de 15 jours pour chaque auteur de topic illsible si ça continue


---------------
J'ai un string dans l'array (Paris Hilton)
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed