In the following example, print statements in the zero-parameter constructors defined in Segment 250 and Segment 251 tell you when those zero-parameter constructors are executed:
public class Demonstrate { public static void main (String argv[]) { Movie m = new Movie(); Symphony s = new Symphony(); } } --- Result --- Calling zero-parameter Attraction constructor Calling zero-parameter Movie constructor Calling zero-parameter Attraction constructor Calling zero-parameter Symphony constructor