trait Device { nat handle; } trait Printable { print(); } plex Screen implements Device { nat handle; nat width; } plex Monitor implements Device, Printable { nat handle; nat width; nat height; print() { } }