Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class Mobile {
  2. private String OS;
  3.  
  4. private int pixels;
  5.  
  6. private boolean gyroscope = false;
  7.  
  8. public Mobile(String oS, int pixels, boolean gyroscope) {
  9. super();
  10. OS = oS;
  11. this.pixels = pixels;
  12. this.gyroscope = gyroscope;
  13. }
  14.  
  15.  
  16. public int getPixels() {
  17. return pixels;
  18. }
  19.  
  20. public void setPixels(int pixels) {
  21. this.pixels = pixels;
  22. }
  23.  
  24. public String getOS() {
  25. return OS;
  26. }
  27.  
  28. public void setOS(String oS) {
  29. OS = oS;
  30. }
  31.  
  32. public boolean isGyroscope() {
  33. return gyroscope;
  34. }
  35.  
  36. public void setGyroscope(boolean gyroscope) {
  37. this.gyroscope = gyroscope;
  38. }
  39.  
  40. @Override
  41. public String toString()
  42. {
  43. return OS;
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement