Women in Technology

Hear us Roar



Article:
  10 Reasons We Need Java 3.0
Subject:   Idea about constructor naming
Date:   2005-02-22 05:24:45
From:   bluetooth
Response to: Idea about constructor naming

When learning Java we're told:
"The constructor is a method named after the class with no return type"


I've always thought it makes more sense to say:
"The constructor is a method with no name that returns an object of the type that it constructs"


It makes the syntax make more sense, to me. Also, your IDE should be able to refactor the constructor names when you re-name a class.