Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- int rep = 1;
- Fachada CafeBar = new Fachada(rep);
- }
- }
- class Fachada {
- private NegocioX negocioX;
- private NegocioY negocioY;
- private NegocioZ negocioZ;
- public Fachada(int oi) {
- this.negocioX = new NegocioX(oi);
- this.negocioY = new NegocioY(oi);
- this.negocioZ = new NegocioZ(oi);
- }
- }
- class NegocioX {
- private Respositorio repo;
- public NegocioX (int oi) {
- if (oi == 0)
- this.repo = new Lista();
- else
- this.repo = new Array();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement