Preview:
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();
	}
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter