Closed sergiotaborda closed 6 years ago
Methods must be marked default or abstract. overwrrides must be declared explicitly
Methods in interfaces are automatically abstract. Methods that implement code but can be overwritten are declared default Methods that override other (default) methods must be declared override Methods that override other methods but cannot be them selfies overwritten must be declared final
If in the future we need to add method implementations to interfaces ( to create traits) they can be declared default as well in coherence with other method with implementation that can be overwritten
For non-interfaces , non-abstract types verify all abstract methods methods of super types and interfaces are implemented or declared native