Advertisement
BlackBoY_

Main

Jun 16th, 2021
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package baboon;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         AnakLaki boy = new AnakLaki();
  6.         System.out.println("Nama     : "+boy.nama+" "+boy.marga);
  7.         System.out.print("Karakter : "); boy.sifatbapack();
  8.        
  9.         AnakBetina girl = new AnakBetina();
  10.         System.out.println("Nama     : "+girl.nama+" "+girl.marga);
  11.         System.out.print("Karakter : "); girl.sifatibuck();
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement