Should one name a field the same name as its class?

后端 未结 0 1021
梦毁少年i
梦毁少年i 2020-12-25 10:29

Suppose you have this class:

class Email {}

And you want it to have a field which holds the actual email address:

class Email {
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题