tugas 7 : abstrac (Ariska / 2012420061)

tugas 7 : abstrac (Ariska / 2012420061)

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

/**
 *
 * @author User
 */
public abstract class filmindonesia {
   
    public abstract void judul ();
    public abstract void pemain ();
    public abstract void tahun ();
   
}

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

/**
 *
 * @author User
 */
public class filmindonesiacomedi extends 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 z = new filmindonesiacomedi();
        z.judul();
        z.pemain();
        z.tahun();
    }
}

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

/**
 *
 * @author User
 */
public class filmindonesiahoror extends 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 abstrac;

/**
 *
 * @author User
 */
public class filmindonesiamelow extends 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 x = new filmindonesiamelow();
        x.judul();
        x.pemain();
        x.tahun();
    }
}



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

Tidak ada komentar:

Posting Komentar