Why am I getting this error with this Java code? -
this beginning of file. it's named correctly, classes defined, it's giving me error.
error: '{' expected; (on first line of given code)
public class classroster extends student extends belt { what's going on?
you can't have "extends student extends belt". can't extend 2 classes multiple inheritance not supported (and comma separated if could, implements).
what have:
public class classroster extends student and student class extends belt
public class student extends belt
Comments
Post a Comment