17

class Life extends Death{
public static void main(String...args){
Guy me = new Guy();
me.born();
GirlFriend gf = new GirlFriend();
me.setGirlFriend(gf);
me.getMarried();
me.haveSon();
me.die();
}
}

------- Exception on line 5: NullPointerException, girlfriend cannot be null ---

Daaamnn

Comments
Add Comment