In Segment 117, you saw that you could define a completely
independent JamesBondMovie
class. Now, you can see that you can
define a JamesBondMovie
class that extends the Movie
class.
Once you have defined such a JamesBondMovie
class, you can adjust
for your particular attitude toward James Bond movies by
defining a special rating
method for the JamesBondMovie
class:
public class JamesBondMovie extends Movie { // Define rating: public int rating () { return 10 + acting + direction; } }