package cs3500.husky.withvars.failed1; /** * A logical 'or' expression: evaluation should short-circuit if the first argument is true. */ public class OrExp implements Expr { final Expr e1; final Expr e2; public OrExp(Expr e1, Expr e2) { this.e1 = e1; this.e2 = e2; } @Override public boolean evaluate() { return this.e1.evaluate() || this.e2.evaluate(); } }