PBO: Abstraction


01/11/2018 06:21:37 122 Web

Interface KendaraanSport

interface KendaraanSport {
    public void turbo();
}

Kelas MobilSport

class MobilSport implements KendaraanSport{
    public void turbo() {
        System.out.println("Mobil Melaju Kencang");
    }
    public double getHarga() {
        return 1300000000;
    }
}