OOP adalah teknik untuk membuat program objek, yaitu program yang tersusun dari kelas dan objek yang saling berhubungan.
Macam-macam oop
Beberapa bentuk dari OOP adalah:
• OOP dengan ADT (Abstract Data Type)
• OOP Client-Supplier
• OOP dengan Inheritance dan Polymorphism
• OOP dengan Genericity
• OOP Concurrent
tipe data abstrak atau struktur data abstrak adalah matematika model untuk kelas tertentu dari struktur data yang memiliki perilaku serupa, atau untuk beberapa tipe data dari satu atau lebih bahasa pemrograman yang mirip dengan semantik. An abstract data type is defined indirectly, only by the operations that may be performed on it and by mathematical constraints on the effects (and possibly cost ) of those operations [ 1 ] . Tipe data abstrak yang didefinisikan secara tidak langsung, hanya dengan operasi yang dapat dilakukan pada dan oleh matematika kendala pada efek (dan mungkin biaya) operasi tersebut
Alasan mengapa menggunakan OOP adalah:
1. Sudut pandang dalam pembuatan program sama dengan realitas dunia nyata
2. Lebih mudah dalam pengembangan
3. Lebih cepat dalam pengembangan
4. Peningakatan produktivitas yang lebih cepat
NUMB.. ~ 1 of my Fav Songs ~

I'm tired of being what you want me to be
Feeling so faithless
Lost under the surface
I don't know what you're expecting of me
Put under the pressure
Of walking in your shoes
(Caught in the undertow / Just caught in the undertow)
Every step that I take is another mistake to you
(Caught in the undertow / Just caught in the undertow)
Chorus:
I've
Become so numb
I can't feel you there
Become so tired
So much more aware
I'm becoming this
All I want to do
Is be more like me
And be less like you
Can't you see that you're smothering me
Holding too tightly
Afraid to lose control
'Cause everything that you thought I would be
Has fallen apart right in front of you
(Caught in the undertow / Just caught in the undertow)
Every step that I take is another mistake to you
(Caught in the undertow / Just caught in the undertow)
And every second I waste is more than I can take
Chorus
But I know
I may end up failing too
But I know
You were just like me
With someone disappointed in you
Chorus
Repeat 2X:
I've become so numb
I can't feel you there
Is everything what you want me to be
tugaz BP 1
import java.util.Scanner;
public class konversi_nilai
int nilai = 0;
Scanner myScanner = new Scanner (System.in);
System.out.print("Nilai?");
nilai = myScanner.nextInt();
if (nilai>= 80)
{
System.out.println("A");
}else if (nilai>= 70)
{
System.out.println("B");
}else if (nilai>=60)
{
System.out.println("C");
}else if (nilai>=50)
{
System.out.println("D");
}else
{
System.out.println("E");
}
}
public class konversi_nilai
{
public static void main(String []args)
int nilai = 0;
Scanner myScanner = new Scanner (System.in);
System.out.print("Nilai?");
nilai = myScanner.nextInt();
if (nilai>= 80)
{
System.out.println("A");
}else if (nilai>= 70)
{
System.out.println("B");
}else if (nilai>=60)
{
System.out.println("C");
}else if (nilai>=50)
{
System.out.println("D");
}else
{
System.out.println("E");
}
}
}
Nama : Nurinda Arista
NPM : 0935010039
Jur : SI_A
kagak TeU mo ngomng pa'an heheeh..
"kuGg jadi agak iLfiLL eahH??? ....!%%#$^$%#(#!#^$*().... :S"
gag jelaz bengeud!!!!
Langganan:
Postingan (Atom)
