M
MuZZy
Hello,
I have a class with two constructors:
public MyClass {
public MyClass(int i) {...}
public MyClass(char c) {...}
}
If i use second constructor while creating an object, compiler gives an
error:
'The best overloaded method match for 'MyClass(int i)' has some invalid
arguments'
And second error:
'cannot convert from char to int'
Where is an error?
Thanky you,
Andrey
I have a class with two constructors:
public MyClass {
public MyClass(int i) {...}
public MyClass(char c) {...}
}
If i use second constructor while creating an object, compiler gives an
error:
'The best overloaded method match for 'MyClass(int i)' has some invalid
arguments'
And second error:
'cannot convert from char to int'
Where is an error?
Thanky you,
Andrey