Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package pertemuan;
- /**
- *
- * @author LK09NU17UTY
- */
- public class Pertemuan {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Manusia man1 = new Manusia();
- man1.nama="santi";
- System.out.println("nama Man1 :"+man1.nama);
- System.out.println("man1 "+man1.alamat);
- man1.ubahNama("Agus");
- System.out.println("nama Man1 :"+man1.nama);
- System.out.println("man1 "+man1.alamat);
- man1.ubahData("Yana", "Jonggol");
- System.out.println("nama Man1 :"+man1.nama);
- System.out.println("man1 "+man1.alamat);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement