Class function that are useful only if certain parameter is valorized. What;s the best practice?

前端 未结 0 1295
离开以前
离开以前 2021-01-31 03:44

Sometimes a function into a class have sense only if some parameter are correcly valorized. A simple example

class Person {

  private name: String;
  private sur         


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