That's correct. When the class and method names are identical, you have a constructor, so you need to put the "new_" in front of the name. You can define your own constructors in Ada, but you need to use special pragmas to tell the Java system (which is very picky about the rules governing constructors).

You may go to the next section.

You may also:

PREVIOUS Go back to the question

OUTLINE  Go up to the outline of lesson 16

David A. Wheeler (

The master copy of this file is at "".