开发者

What is a class with only attributes called?

开发者 https://www.devze.com 2023-01-05 05:55 出处:网络
Is there a name or nickname for a class that only contain attributes (like a c struct)? Like DialogParameters in this example:

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

精彩评论

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