Professional Documents
Culture Documents
Contoh Program OOP Java Enkapsulasi Dan Constructor
Contoh Program OOP Java Enkapsulasi Dan Constructor
Contoh Program OOP Java Enkapsulasi Dan Constructor
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-
default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit
this template
*/
package tabungan2;
/**
*
* @author NURUL
*/
public class Tabungan2 {
// Konstruktor
public Tabungan2(String nama, int noRekening, int saldo, int pin) {
this.nama = nama;
this.noRekening = noRekening;
this.saldo = saldo;
this.pin = pin;
}