All pastes #990337 Raw Edit

Seba

public java v1 · immutable
#990337 ·published 2008-04-20 02:40 UTC
rendered paste body
public class Attack {        int Ataque;        Attack (int a) {                this.Ataque = a;        }        public int getDamage(){                return(0);        }        public String getMessage(){                return(Integer.toString(Ataque));        }}public class Punch extends Attack{        public int getDamage(){                return(8);        }        public String getMessage(){                return("Punch");        }}/*Error ----------1. ERROR in Punch.java (at line 3)        public class Punch extends Attack                     ^^^^^Implicit super constructor Attack() is undefined for default constructor. Must define an explicit constructor----------