Is it OK to write a constructor which does nothing?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-08T21:47:20Z Indexed on 2010/03/08 21:51 UTC
Read the original article Hit count: 214

Filed under:
|
|

To use methods of a class I need to instantiate a class. At the moment the class has not constructor (so I want to write it). But than I have realized that the constructor should do nothing (I do need to specify values of fields).

In this context I have a question if it is OK to write constructor which does nothing. For example:

public Point() {
}

© Stack Overflow or respective owner

Related posts about java

Related posts about oop