* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package chipul;
/**
*
* @author USER
*/
public class televisioveriiding {
String nama;
String type;
String ukuran;
void nama(){
}
void Type(){
}
void ukuran(){
}
}
class thosiba2 extends televisioveriiding {
void nama(){
nama="thosiba";
System.out.println("Nama = "+nama);
}
void Type(){
type="LCD";
System.out.println("Type = "+type);
}
void ukuran(){
ukuran="21'";
System.out.println("Ukuran = "+ukuran);
}
}
class polytron2 extends televisioveriiding {
void nama(){
nama="polytron";
System.out.println("Nama = "+nama);
}
void Type(){
type="LCD";
System.out.println("Type = "+type);
}
void ukuran(){
ukuran="21'";
System.out.println("Ukuran = "+ukuran);
}
}
class panasonic2 extends televisioveriiding {
void nama(){
nama="panasonic";
System.out.println("Nama = "+nama);
}
void Type(){
type="LCD";
System.out.println("Type = "+type);
}
void ukuran(){
ukuran="21'";
System.out.println("Ukuran = "+ukuran);
}
public static void main(String[] args) {
thosiba2 x=new thosiba2();
x.nama();
x.Type();
x.ukuran();
System.out.println("=====================================");
polytron2 y=new polytron2();
y.nama();
y.Type();
y.ukuran();
System.out.println("=====================================");
panasonic2 z=new panasonic2();
z.nama();
z.Type();
z.ukuran();
System.out.println("=====================================");
}
}
Posted by 12.49 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar