阅读背景:

具有相同参数类型的构造函数

来源:互联网 

I have a Person object with two constructors - one takes an int (personId), the other a string (logonName). I would like another constructor that takes a string (badgeNumber). I know this can't be done, but seems it might be a common situation. Is there a graceful way of handling this? I suppose this would apply to any overloaded method. Code:I have a Person object with two constructors -




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: