Combination of Inheritance & Interface | Selenium Forum
M
Posted on 19/07/2016
[u:1mhkhax2]Option 1:[/u:1mhkhax2]
Public class A extends B implements C {

}

[b:1mhkhax2]when tried with this logic, it worked fine. All methods in class B + methods in Interface C are displayed in Class A.[/b:1mhkhax2]

[u:1mhkhax2]Option 2:[/u:1mhkhax2]
Public class A implements C extends B{

}

Error message: Syntax error on token "extends", .expected

can you please share your ideas for this error message in option 2

M
Replied on 20/07/2016

extend should come first. that is how java is build.