Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Phone {
- public String nama;
- public String os;
- public int memory;
- public int price;
- public Phone(String nama, String os, int memory, int price){
- this.nama = nama;
- this.os = os;
- this.memory = memory;
- this.price = price;
- }
- public int getPrice() {
- return price;
- }
- public void setPrice(int price) {
- this.price = price;
- }
- public String getNama() {
- return nama;
- }
- public void setNama(String nama) {
- this.nama = nama;
- }
- public String getOs() {
- return os;
- }
- public void setOs(String os) {
- this.os = os;
- }
- public int getMemory() {
- return memory;
- }
- public void setMemory(int memory) {
- this.memory = memory;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement