// Solidity program to demonstrate // Function overloading pragma solidity ^0.4.18; contract SimpleStore { function getSum(uint a, uint b) public pure returns(uint) { return a + b; } function getSum(uint a, uint b, uint c) public pure returns(uint) { return a + b + c; } function callSumWithTwoArguments() public pure returns(uint) { return getSum(1,2); } function callSumWithThreeArguments() public pure returns(uint) { return getSum(1,2,3); } }
0.4.18