Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. package fes.aragon.pc;
  2.  
  3. public class Memoria {
  4.  
  5. public Memoria() {
  6. super();
  7. this.capacidad=512;
  8. }
  9.  
  10. private int capacidad;
  11.  
  12. public Memoria(int capacidad) {
  13. super(); //tengo que llamar el constructor de mi papá => objet()
  14. this.capacidad = capacidad;
  15. }
  16.  
  17. public int getCapacidad() {
  18. return capacidad;
  19. }
  20.  
  21. public void setCapacidad(int capacidad) {
  22. this.capacidad = capacidad;
  23. }
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement