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

	// error! private functions cannot be overriden, so no point in making them virtual!
	function bar() private pure virtual returns (string memory) {
		return "bar";
	}
}
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