0
Interface
- Each method in an interface is also implicitly abstract, so the abstract keyword is not needed. - Methods in an interface are implicitly public. Each sentence talks about methods in an interface but one says they're abstract and the other says they're public ... so where's the truth ?
1 Antwort
+ 2
They are abstract AND public, both...
A method can be public OR protected ( in some languages ) OR private ( in most languages )... but can be abstract in the same time. An abstract method, is a method declared, but which will be implemented in a class after inherit from the interface ( who's a kind of class you cannot instanciate, but you can only inherit ).