【发布时间】:2018-08-31 22:50:15
【问题描述】:
一般来说,(对于任何面向对象编程语言) 按照惯例,静态类的第一个字母应该大写吗?
例如,在:
// Example of a static class in JavaScript ES6
class myStaticClass {
static toUppercaseOrNotToUppercase() {
return Stackoverflow.ask('Should static classes like this conventionally have their first letter uppercased?');
}
}
该类应该声明为myStaticClass 还是MyStaticClass?
【问题讨论】:
标签: conventions static-classes