Home Segments Top Top Previous Next

209: Mainline

To define a zero-parameter constructor for the Movie class, you would write the following:

      *-- No return type specified 
      |  *-- Constructor name is the same as class name 
      |  | 
      v  v 
public Movie() { 
... 
}