public class And extends Porte2Entrees{ /*void run(){ s=in1 && in2; } void display(){ }*/ /*public boolean getEtat() throws NonConnecteException { if ((in1 == null) || (in2 == null)) { throw new NonConnecteException(); } else { s=(in1.getEtat() && in2.getEtat()); return s; } }*/ public boolean eval(){ if ((in1 == null) || (in2 == null)) { throw new NonConnecteException(); } else { s=(in1.getEtat() && in2.getEtat()); return s; } } }