I have a class with overloaded Constructors:
They’re all different:
- Integer, String, Optional Variant
- Integer, String, String, Optional Variant
- Integer, String, Integer, String, Optional Variant
When I try to call the constructor with Integer, String, Variant, I get
“There is more than one method with this name but this does not match any of the available signatures.
Packet = New APIpacket(FrameType_ATcommand,Parameter,Value)”
Is the compiler not smart enough to differentiate signatures when optional parameters are involved? Even if I removed the optional parameter or made it non-optional, they’d all be unique.