Posts

Showing posts with the label Java Programming

Java Programming Inheritance Geometri with extends class Circle, Rectangel, Triangel

Image
 //class Geometri package tugasapbo; public class Geometri {       protected double alas;     protected double phi;     protected double r;     protected double tinggi;     protected int sisi;         public Geometri() {     }     public Geometri(double alas, double phi, double r, int sisi, double tinggi) {           this.alas = alas;         this.phi = phi;         this.jarijari = r;         this.tinggi = tinggi;         this.sisi = sisi;     }        public double getAlas() {         return alas;     }     public void setAlas(double alas) {    ...