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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -