tugas 8 : interface (Ariska / 2012420061)

tugas 8 : interface (Ariska / 2012420061)

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfesa;

/**
 *
 * @author User
 */
public interface filmindonesia {
    public void judul ();
    public void pemain ();
    public void tahun ();
}
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfesa;

/**
 *
 * @author User
 */
public class filmindonesiacomedi implements filmindonesia {

    @Override
    public void judul() {
        System.out.println("Bangun Lagi Dong LUPUS");
    }

    @Override
    public void pemain() {
        System.out.println("Miqdad Addausy dan Acha Septriasa");
    }

    @Override
    public void tahun() {
        System.out.println("Dirilis Tahun 2013");
    }
    public static void main(String[] args) {
        filmindonesiacomedi x = new filmindonesiacomedi();
        x.judul();
        x.pemain();
        x.tahun();
    }
}

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfesa;

/**
 *
 * @author User
 */
public class filmindonesiahoror implements filmindonesia{

    @Override
    public void judul() {
        System.out.println("Rumah Kentang");
    }

    @Override
    public void pemain() {
        System.out.println("Tasya dan Shandy Aulia");
    }

    @Override
    public void tahun() {
        System.out.println("Dirilis Tahun 2012");
    }
    public static void main(String[] args) {
        filmindonesiahoror y = new filmindonesiahoror();
        y.judul();
        y.pemain();
        y.tahun();
    }
}

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfesa;

/**
 *
 * @author User
 */
public class filmindonesiamelow implements filmindonesia{

    @Override
    public void judul() {
        System.out.println("Perahu Kertas");
    }

    @Override
    public void pemain() {
        System.out.println("Maudy Ayunda dan Adipati Dolken");
    }

    @Override
    public void tahun() {
        System.out.println("Dirilis Tahun 2012");
    }
    public static void main(String[] args) {
        filmindonesiamelow z = new filmindonesiamelow();
        z.judul();
        z.pemain();
        z.tahun();
    }
}




share this article to: Facebook Twitter Google+ Linkedin Technorati Digg
Posted by arek informatika, Published at 02.57 and have 0 komentar

Tidak ada komentar:

Posting Komentar