This content has been marked as final. Show 2 replies
If you don't explicity invoke a super constructor, the compiler inserts a call to the no-arg c'tor:
If your parent class does not have such a c'tor, that's an error. You'll need to add a call to
as the first line of your child class c'tor.
super(name, age, gender); // or whatever parameters the parent's c'tor actually takes
Thanks for that!