Home Segments Index Top Previous Next

339: Mainline

According, you could choose to store the ratio of fat calories to fat grams in a class variable. Unlike instance variables, there is but one value for a class variable for the entire class, and for all that class's subclasses, yet the value of that variable, like values for instance variables, is available to all methods defined for the class and that class's subclasses.