How would I go about doing this in java?
I need the constructor in my subclass to call the inherited constructor in my superclass. is there a special syntax that i need to use in order to do this?
I've used extends to inherit from the Person class. How would i go about using super()?
Here is my class:
public class Student extends Person
{
protected int id;
public Student()
{
// how do i call the inherited constructor here?
}
}