Class

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

/**
*
* @author BASDAT
*/
public class Praktikum2 {
private String NIM;
private String NAMA;

public void Mahasiswa (){

}
public void Mahasiswa(String NIM, String NAMA){
this.NIM=NIM;
this.NAMA=NAMA;
}
public void setNIM(String NIM){
this.NIM=NIM;
}
public String getNIM(){
//this.NIM=NIM;
return NIM;
}

public void setNAMA(String NAMA){
this.NAMA=NAMA;
}
public String getNAMA(){
//this.NAMA=NAMA;
return NAMA;
}

}

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s