public SubStudent(int id, string name, int ssn)
: base(int id, string name)
it should be
public SubStudent(int id, string name, int ssn)
: base(id, name)
You do not yet declare the signature of the base constructor, you just call it. And, like in any other call, parameter types are not indicated on the call site.
Edit: adjusted int nameto string namein the SubStudentctor parameter list.
source
share