pragma solidity ^0.5.10;
contract Demo1{
uint public data;
function setData(uint _data) public {
data = _data;
}
}
contract Demo2{
function toSetData(Demo1 demo1,uint _data) public {
demo1.setData(_data);
}
}
pragma solidity ^0.5.10;
contract Demo1{
function setData(uint _data) public;
}
contract Demo3{
function toSetData(Demo1 demo1,uint _data) public {
demo1.setData(_data);
}
}