Bonjour,

Je ne comprend pas pourquoi je dois mettre mes methodes en static
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
    public static void main(String arg[]) 
    { 
        if(connexion()) 
           menu(); 
        deconnexion(); 
    }
 
public boolean connexion(){...}
public void deconnexion(){...}
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Cannot make a static reference to the non-static method connexion() from the type GestionVente
Cannot make a static reference to the non-static method deconnexion() from the type GestionVente