chapter25-code-6

PHOTO EMBED

Thu Mar 30 2023 11:39:37 GMT+0000 (Coordinated Universal Time)

Saved by @RareSkills

contract Parent {
	function foo() internal pure virtual returns (string memory) {
		return "foo";
	}
}

contract Child is Parent {
	// we have overriden foo and made it public
	function foo() public pure override returns (string memory) {
		return super.foo();
	}
}
content_copyCOPY