Adam Lyles Kauffman11,486 Points
order of classes
im pretty confused. how come the Student class cannot be declared before the person class? Maybe there is something i didn't understand. I thought I understood hoisting. it was basically to define the class before calling the class. I don't see how a different order of classes affect anything as long as you call them after they are both defined. Please and Thank you for the help.
Steven Parker170,315 Points
The issue here is "dependency", which means that you should always define a class before any others that reference it. Since a
Student is a special kind of
Person needs to be defined first.