Guest User

Untitled

a guest
Jan 17th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6.  
  7. /**
  8. *
  9. * @author AMD
  10. */
  11. public class SpesifikasiSmartphone implements Smartphone{
  12.  
  13. @Override
  14. public String panggilan() {
  15. return"Ya";
  16. }
  17.  
  18. @Override
  19. public String sms() {
  20. return "Ya";
  21. }
  22.  
  23. @Override
  24. public String wifi() {
  25. return "Ya";
  26. }
  27.  
  28. @Override
  29. public String sinyal() {
  30. return "3G/4G";
  31. }
  32.  
  33. @Override
  34. public String internet() {
  35. return "Ya";
  36. }
  37. @Override
  38. public String kamera() {
  39. return "13mp";
  40. }
  41.  
  42.  
  43. }
  44.  
  45. class implementasi{
  46. public static void main(String[] args){
  47.  
  48. //object
  49. SpesifikasiSmartphone spesifikasiSmartphone = new SpesifikasiSmartphone();
  50. System.out.println("INI SMARTPHONE TERBARU");
  51. System.out.println("Melakukan Panggilan : "+spesifikasiSmartphone.panggilan());
  52. System.out.println("Mengirim SMS : "+spesifikasiSmartphone.sms());
  53. System.out.println("Support WIfi : "+spesifikasiSmartphone.wifi());
  54. System.out.println("Support Sinyal : "+spesifikasiSmartphone.sinyal());
  55. System.out.println("Internet dan Browsing : "+spesifikasiSmartphone.internet());
  56. System.out.println("Camera : "+spesifikasiSmartphone.kamera());
  57. }
  58.  
  59. }
Add Comment
Please, Sign In to add comment