Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author AMD
- */
- public class SpesifikasiSmartphone implements Smartphone{
- @Override
- public String panggilan() {
- return"Ya";
- }
- @Override
- public String sms() {
- return "Ya";
- }
- @Override
- public String wifi() {
- return "Ya";
- }
- @Override
- public String sinyal() {
- return "3G/4G";
- }
- @Override
- public String internet() {
- return "Ya";
- }
- @Override
- public String kamera() {
- return "13mp";
- }
- }
- class implementasi{
- public static void main(String[] args){
- //object
- SpesifikasiSmartphone spesifikasiSmartphone = new SpesifikasiSmartphone();
- System.out.println("INI SMARTPHONE TERBARU");
- System.out.println("Melakukan Panggilan : "+spesifikasiSmartphone.panggilan());
- System.out.println("Mengirim SMS : "+spesifikasiSmartphone.sms());
- System.out.println("Support WIfi : "+spesifikasiSmartphone.wifi());
- System.out.println("Support Sinyal : "+spesifikasiSmartphone.sinyal());
- System.out.println("Internet dan Browsing : "+spesifikasiSmartphone.internet());
- System.out.println("Camera : "+spesifikasiSmartphone.kamera());
- }
- }
Add Comment
Please, Sign In to add comment