SUPERCLASS :

Syntax :

class SuperClass {

public void Jenis_Handphone() {

System.out.println(“Macam – macam dari Jenis Hand Phone Nokia yang sudah Berwarna:”);

System.out.println(“01. General”);

System.out.println(“02. Slide”);

System.out.println(“03. Touch Screen”);

System.out.println(“04. Communicator”);

System.out.println(“05. Flip”);

System.out.println(“06. Joystick”);

System.out.println(“07. Rotate”);

System.out.println(“”);

}

public static void main(String[] args) {

SuperClass sc = new SuperClass();

sc. Jenis_Handphone ();

}

}

Output :

Macam – macam dari Jenis Hand Phone Nokia yang sudah Berwarna:

01. General

02. Slide

03. Touch Screen

04. Communicator

05. Flip

06. Joystick

07. Rotate

Super Class

SubClass :

Syntax :

class SubClass extends SuperClass {

public void Panggil() {

super. Jenis_Handphone();

System.out.println(“Beberapa Contoh dari Tipe Handphone NOKIA : “);

}

public void General() {

System.out.println(“Type General : 1208, 1650, 1680, 2310, 2600c, 2610, 2626, 2630, 3110c, 3120c, 3500, 3650, 3660, 5000, 5310, 5220, 5320, 6030, 6120c, 6220c, 6233, 6288, 6300, 6500, 6630, 6680, 6681, 7210 Supernova , 7310 Supernova, 7500 Prism, 7610,  7900 Prism, E51, E61i, E63, E71, N70, N72, N77, N78, N79, N82”);

}

public void Slide() {

System.out.println(“Type Slide : 3600 Slide, 5200, 5300, 5610, 6110, 6270, 6280, 6288, 6500 Slide, 6600 Slide, 7100 Supernova, 7370, 7610 Supernova, 8600 Luna, 8800 Arte, 8800 Carbon Arte, 8800 Sapphire Arte, E65, E66, N80i, N81, N85, N91, N95, N96”);

}

public void Touch_Screen() {

System.out.println(“Type Touch Screen : 5800 Express Music, 5820 Express Music”);

}

public void Communicator() {

System.out.println(“Type Communicator : 9300, 9300i, 9500, E90”);

}

public void Flip() {

System.out.println(“Type Flip : 6600 Fold, 7390, N71, N76, N90, N92, N93, N93i”);

}

public void Joystick() {

System.out.println(“Type Joystick : 3250, 6600, E50, E61, N73”);

}

public void Rotate() {

System.out.println(“Type Rotate : 3250, 5700”);

}

public static void main(String[]args) {

SubClass scs = new SubClass();

scs.Panggil();

scs.General();

scs.Slide();

scs.Touch_Screen();

scs.Communicator();

scs.Flip();

scs.Joystick();

scs.Rotate();

}

}

Output :

Macam – macam dari Jenis Hand Phone Nokia yang sudah Berwarna:

01. General

02. Slide

03. Touch Screen

04. Communicator

05. Flip

06. Joystick

07. Rotate

Beberapa Contoh dari Tipe Handphone NOKIA :

Type General : 1208, 1650, 1680, 2310, 2600c, 2610, 2626, 2630, 3110c, 3120c, 3500, 3650, 3660, 5000, 5310, 5220, 5320, 6030, 6120c, 6220c, 6233, 6288, 6300, 6500, 6630, 6680, 6681, 7210 Supernova , 7310 Supernova, 7500 Prism, 7610,  7900 Prism, E51, E61i, E63, E71, N70, N72, N77, N78, N79, N82

Type Slide : 3600 Slide, 5200, 5300, 5610, 6110, 6270, 6280, 6288, 6500 Slide, 6600 Slide, 7100 Supernova, 7370, 7610 Supernova, 8600 Luna, 8800 Arte, 8800 Carbon Arte, 8800 Sapphire Arte, E65, E66, N80i, N81, N85, N91, N95, N96

Type Touch Screen : 5800 Express Music, 5820 Express Music

Type Communicator : 9300, 9300i, 9500, E90

Type Flip : 6600 Fold, 7390, N71, N76, N90, N92, N93, N93i

Type Joystick : 3250, 6600, E50, E61, N73

Type Rotate : 3250, 5700

BUILD SUCCESSFUL (total time: 2 seconds)

Subclass