Program Bravo.java

Tuesday, March 29, 2011 5:16 PM by Computer and Programming

class Alpha {
   private int a = 5;

   public  (7) void info{
      System.out.println("a = " + a);
      System.out.println("Dipanggil pada " +
                         this.getClass().getName());
   }
}


class Bravo extends Alpha {
   private int b = 7;

   public static void main(String[] args) {
      Bravo (8) obj  = new Bravo ();
      obj.info();
   }
}
import   java.io.*;
class Abc {   final public double PI = 3.14;
  final void info() {      System.out.println("PI = " + PI);   }   }
class Xyz extends Abc { }
class PenentuFinal {
   public static void main(String[] args) {
      Xyz obj = (9) new Xyz ();
      (10) obj.  info();    }}

0 Response to "Program Bravo.java"

Post a Comment