extends can refer to a constructor #796