I have just check the code of CalculatorV2, and it needs a change.
The constructor is defined as
function CalculatorV2(uint num) public { // constructor result=num; }
But this way of defining a constructor is deprecated. Now it must be defined as:
constructor (uint num) public { // constructor result=num; }
I have just check the code of CalculatorV2, and it needs a change.
The constructor is defined as
function CalculatorV2(uint num) public { // constructor result=num; }But this way of defining a constructor is deprecated. Now it must be defined as:
constructor (uint num) public { // constructor result=num; }