Groovy web console

subscribe to the feed Subscribe
to this
site

flyability trait

Published 7 years ago by glaforge with tags trait
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
trait Flyability {
    void fly() { println 'I fly' }
}

class Bird implements Flyability {}

new Bird().fly()