11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.6 Interfaces and Implementations • 117This package implements the interface abstraction. It allows you tomanipulate interfaces without having to worry about how they fit intothe Maple type system.> with( Interface );Warning, the protected names define and savelib havebeen redefined and unprotected[define, equivalent, extend , extends, satisfies, savelib]> define( ’abgroup’, ’‘+‘’, ’‘-‘’, ’zero’ );abgroup> type( ‘type/abgroup‘, ’interface’ );true> type( z5, ’abgroup’ );true> satisfies( z5, ’abgroup’ );true> extend( ’ring’, ’abgroup’, ’‘*‘’, ’one’ );ring> type( ‘type/ring‘, ’interface’ );true> extends( abgroup, ring );true

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!