Module 4 - Inheritance/Interface --only non-static functions | Selenium Forum
M
Posted on 19/07/2016
In Module 4, while explaining Interface and Inheritance concepts, "Class" is created with only NON-STATIC functions.

I tried to create Static function(s) in the class and tried to extend/implement that function and got error message "Remove static".

That means, Inheritance/Interface supports only NON-STATIC functions/methods. Is there any specific reason for this?

can you please explain?

M
Replied on 20/07/2016

check this q/a

http://stackoverflow.com/questions/512877/why-cant-i-define-a-static-method-in-a-java-interface
http://stackoverflow.com/questions/25169175/why-are-class-static-methods-inherited-but-not-interface-static-methods