Example Interface
Interface Movie {
attribute string title;
relationship Set <Star> stars
inverse Star::starredIn;
float lengthInHours raises(noLengthFound);
starNames (out Set <String>);
otherMovies (in Star, out Set<Movie>
raises (noSuchStar));
}
Note: defining signature, not implementation. Overloading allowed.
Previous slide
Next slide
Back to first slide
View graphic version