Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BelajarKonstruktor{
- public static void main(String[] args) {
- Nama cetak = new Nama();
- Santri belajar = new Santri();
- }
- }
- class Nama{
- public Nama() {
- System.out.println("Muhammad Andari");
- }
- }
- class Santri{
- public Santri() {
- System.out.println("Santri Pondok IT");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement