Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Mobile {
- private String OS;
- private int pixels;
- private boolean gyroscope = false;
- public Mobile(String oS, int pixels, boolean gyroscope) {
- super();
- OS = oS;
- this.pixels = pixels;
- this.gyroscope = gyroscope;
- }
- public int getPixels() {
- return pixels;
- }
- public void setPixels(int pixels) {
- this.pixels = pixels;
- }
- public String getOS() {
- return OS;
- }
- public void setOS(String oS) {
- OS = oS;
- }
- public boolean isGyroscope() {
- return gyroscope;
- }
- public void setGyroscope(boolean gyroscope) {
- this.gyroscope = gyroscope;
- }
- @Override
- public String toString()
- {
- return OS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement