>>super classs
package abs;
/**
*
* @figuh ae
*/
public abstract class ungas {
public void makan(){
System.out.println("sudah makan dedek");
}
}
>>sub classs
package abs;
/**
*
* @figuh ae
*/
public class bebek extends ungas {
public void makan(){
System.out.println("sudah makan nasi basi pemberian surur");
}
}
>>sub class
package abs;
/**
*
* @figuh ae
*/
public class ayam extends ungas {
public void makan(){
System.out.println("sudah makan jagung");
}
Posted by 01.11 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar