开发者

What is a class with only attributes called?

Is there a name or nickname for a class that only contain attributes (like a c struct)? Like DialogParameters in this example:

public class MyDialog extends JDialog {

  public static class DialogParameters {
    public Stri开发者_运维技巧ng dialogTitle;
    public String helpId;
  }

  public MyDialog(DialogParameters parameters) {
    ...
  }
}


Data transfer object, or value object.


POJO (http://en.wikipedia.org/wiki/Plain_Old_Java_Object)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜