Posts

Showing posts with the label OOP

Quiz answers of OOP

At this occasion, will be showed the answers of the quiz of OOP,  to understand much, we had better write the codes here in Java's tool: first of all create the Java project, that is ObjekGeometri, in the ObjekGeometri.Java , write the codes bellow: package objekgeometri; public abstract class ObjekGeometri {     private String warna ="putih";     private boolean terisi;     private java.util.Date tanggalDiciptakan;         /**menciptakan suatu objek gometri */     protected ObjekGeometri(){         tanggalDiciptakan = new java.util.Date();     }         /**menciptakan suatu objek geometri dengan warna nilai terisi tertentu **/     protected ObjekGeometri(String warna, boolean terisi) {         tanggalDiciptakan = new java.util.Date();   ...

How to code with OOP concept

Image
This section, I try to give the sample on how to code in Java using object oriented concept (we'll talk OOP concept). we must have known at least four concept to code in pure object oriented concept. encapsulation, in this sample program, how we add private as acces specifier for the variables sisi, panjang and lebar (see more in the program that you can download at the link).  T he second, we add inheritance see (class persegiPanjang extend BangunDiatar), so the class of BangunDatar can get the met hod from class both Persegipanjang and BujurSangkar. here is the link to download code recommendedOOPSample Finally , we add inheritance see (class persegiPanjang extend BangunDatar), so the class of BangunDatar can get the method from class both Persegipanjang and BujurSangkar. Now please try the code usign editors of Java (e.g : NetBeathen, Eclipse or others).

Pemrograman Berorientasi Objek

Pemrograman Berorientasi Objek bertujuan untuk mengajarkan mahasiswa teknik pemrograman menggunakan konsep berorientasi objek selain dari teknik prosedural. pada mata kuliah ini, difokuskan menggunakan bahasa pemrograman JAVA. Java sendiri selain open source memiliki banyak kelebihan dengan fitur-fitur yang dimiliki Java.  download materi berikut PengenalanPemrograman1Java Bahasa pemrograman Java memiliki konsep-konsep yang dikategorikan berorientasi objek seperti Abstrak, Polymorphism, Inheritance dan Encapsulation.