Jumat, 03 Oktober 2014

prak 3.1 APBO

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

/**
 *
 * @author Praktikan
 */
public class Mahasiswa extends Manusia{
    private String nim;
    private String prodi ;
   
   
    public Mahasiswa (){}
   
    public Mahasiswa (String nim){
    this.nim = nim;
    }
   
    public void setNim(String nim){
        this.nim = nim;
    }
   
    public String getNim(){
        return nim;
    }
   
    public String getProdi () {
       
        return prodi ;
       
    }
           
   public void setProdi (String Prodi ){
          
        this.prodi=Prodi;
   }
}

prak 3 . APBO

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

/**
 *
 * @author Praktikan
 */
public class Praktikum3 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Mahasiswa mhs =new Mahasiswa();
        mhs.setNim("1300018021");
        mhs.setNama("Ridha ammi lestari");
        mhs.setAlamat("payaman utara girirejo imogiri bantul");
        mhs.setProdi("teknik informatika" );
       
       
        System.out.println("Nim : "+mhs.getNim());
        System.out.println("Nama : "+mhs.getNama());
        System.out.println("Alamat : "+mhs.getAlamat());
        System.out.println ("Prodi : "+mhs.getProdi ());
       
       
    }
}
Postingan Lebih Baru Postingan Lama Beranda

 

Followers

 

Blogroll

Templates by ridha ammi | CSS3 by David Walsh | Powered by {N}Code & Blogger