# test.sol文件
pragma solidity ^0.5.1;
contract Hello {
uint value;
function hello() public view returns(string memory){
return "hello word";
}
function set(uint x) public {
value = x;
}
}
# test001.sol文件
pragma solidity ^0.5.1;
import { Hello } from "./test.sol" ;
contract Test001 is Hello {
function test() public view returns(string memory){
return "hello word";
}
}