current position:Home>How the contract defined in the solid contract is defined is a little unclear

How the contract defined in the solid contract is defined is a little unclear

2022-02-03 23:37:07 Q & A of Denglian community

pragma solidity ^0.4.22;contract father{    function dahan() external pure  returns(string){        return "dahan";    }}contract outside{    father public f= new father();    function testf() public view returns(string){        return f.dahan();    }}

excuse me , This outside In the contract new One. father contract , Does it count outside Member variables of the contract ? If it and father It's exactly the same , Then how did it deploy ?






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032337059689.html

Random recommended