Skip to content

Commit 3bce1e2

Browse files
aramb-devsaraab-deva-m-mudrasatghcoc1
committed
Added variable.sol
https: //gist.github.com/aramservices198/2ad642d5cf7accfb5f4b4aa583f5d439 Co-Authored-By: Saraa <[email protected]> Co-Authored-By: a-m-mudrasat <[email protected]> Co-Authored-By: ghcoc1 <[email protected]>
1 parent 0fd0fc2 commit 3bce1e2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Variable.sol

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pragma solidity 0.5.1;
2+
contract variable_ex {
3+
string variable;
4+
5+
constructor() public {
6+
variable = "Default";
7+
8+
}
9+
function get() public view returns(string memory) {
10+
return variable;
11+
}
12+
function set(string memory variableset) public {
13+
variable = variableset;
14+
}
15+
}

0 commit comments

Comments
 (0)