Home Segments Top Top Previous Next

176: Mainline

In the following definition of the Movie class, three instance variables appear, along with the movieRating class method:

public class Movie { 
 public int script, acting, direction; 
 public static int movieRating (int s, int a, int d) { 
  return s + a + d; 
 } 
}