Contents

方法参数默认值

Contents

参数默认值

  • 支持多个参数添加默认值 每个参数都可以有默认值
  • 没有默认值的参数要写在前面
static int Speak(string str = "我不想说话"){

}