You might, for example, define not only the
Movie
class, but also the JamesBondMovie
class, in which the
movieRating
method reflects, say, a belief that 10 should be used
instead of the value of the script parameter, s
, when rating
James Bond movies:
public class JamesBondMovie { public static int movieRating (int s, int a, int d) { return 10 + a + d; } }