//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract bank{ uint private value; function deposit(uint amount){ value+=amount; } function withdraw(uint amount){ value+=amount; } function balance(uint amount){ value=amount; } } contract myFirstContract is bank{ string private name; uint private age; function setName(string newName){ name=newName; } function getName() returns (string){ return name; } function setAge(uint newAge){ age=newAge; } function getAge() returns (uint){ return age; } }
0.4.18