[Solved] Non-static methods cannot be referenced from a static context from within the same class [duplicate]
change RegistryInterface.doDeleteStudent(studentID); // Static error here. with this.doDeleteStudent(studentID); Hope helped you! solved Non-static methods cannot be referenced from a static context from within the same class [duplicate]