{"action":"opened","issue":{"url":"https://api.github.com/repos/ismtabo/cc_bigintegers/issues/5","labels_url":"https://api.github.com/repos/ismtabo/cc_bigintegers/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ismtabo/cc_bigintegers/issues/5/comments","events_url":"https://api.github.com/repos/ismtabo/cc_bigintegers/issues/5/events","html_url":"https://github.com/ismtabo/cc_bigintegers/issues/5","id":116334558,"number":5,"title":"Implementación de clase BigInt","user":{"login":"garciparedes","id":5640366,"avatar_url":"https://avatars.githubusercontent.com/u/5640366?v=3","gravatar_id":"","url":"https://api.github.com/users/garciparedes","html_url":"https://github.com/garciparedes","followers_url":"https://api.github.com/users/garciparedes/followers","following_url":"https://api.github.com/users/garciparedes/following{/other_user}","gists_url":"https://api.github.com/users/garciparedes/gists{/gist_id}","starred_url":"https://api.github.com/users/garciparedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garciparedes/subscriptions","organizations_url":"https://api.github.com/users/garciparedes/orgs","repos_url":"https://api.github.com/users/garciparedes/repos","events_url":"https://api.github.com/users/garciparedes/events{/privacy}","received_events_url":"https://api.github.com/users/garciparedes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ismtabo/cc_bigintegers/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-11T13:18:26Z","updated_at":"2015-11-11T13:18:26Z","closed_at":null,"body":"He puesto este nombre a la tarea porque no sabía cómo llamarla.\n\nSe me ha ocurrido algo para luego no tener que modificar el código independiente a la clase BigInteger en el caso de que al final nos decidiéramos a implementarla nosotros mismos.\n\nPodríamos crear una interfaz con los métodos que necesitemos de la clase BigInteger (con el mismo nombre) y utilizar esta interfaz en nuestro código.\n\nDespués crear una clase que herede de BigInteger cuyo único cambio respecto de la original sea que implemente nuestra interfaz.\n\nCon esto conseguiríamos que al utilizar nuestra clase en el resto del código tan solo tendríamos que cambiar el valor que le damos a la interfaz, es decir, sustituiríamos\n\nInterfazBigInt bigInt = new BigIntegerHeredada(); \n\npor \n\nInterfazBigInt bigInt = new NuestraClaseBigInt();\n\ny nada más. =)"}}