正如 Richard 和 amal 指出的那样,类名必须与其功能相关。 如果它代表一堆活动,那么将其命名为“活动”就可以了。
Class Activities {
private List activities; // backlog, planned, other better name (more specific)
private List promises;
}
Like Richard and amal pointed, the class name must be something related to its function. If it represents a bunch of activities, so it is okay to name it Activities.
Class Activities {
private List activities; // backlog, planned, other better name (more specific)
private List promises;
}
发布评论
评论(1)
正如 Richard 和 amal 指出的那样,类名必须与其功能相关。
如果它代表一堆活动,那么将其命名为“活动”就可以了。
Like Richard and amal pointed, the class name must be something related to its function.
If it represents a bunch of activities, so it is okay to name it Activities.