sergiotaborda / lense-lang

The Lense Language Compiler
1 stars 0 forks source link

Verify all inherit methods are implemented #7

Closed sergiotaborda closed 6 years ago

sergiotaborda commented 8 years ago

For non-interfaces , non-abstract types verify all abstract methods methods of super types and interfaces are implemented or declared native

sergiotaborda commented 6 years ago

Methods must be marked default or abstract. overwrrides must be declared explicitly

sergiotaborda commented 6 years ago

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