Public | Internal | External | Private Functions II in Solidity

Source :

This is my short code


0-Deploy the Base Contract

1- We cant see private and internal functions directly.

2- We can see external and public functions.

How could we see other functions ? We need getter functions for both of them .


3- We click test functions.Yes.

5- How could we see external function result from external contract ?

This is my code

contract Sample {

Base samplebase=new Base();

function reach() public view returns(string memory) {

return samplebase.externalFunc();



6- Deploy the Sample Contract

This is visibility business!




Solidity Programming Language

Solidity basics for beginners: Learn the fundamentals of smart contract development and build your first DApp! #Solidity #Foundry #Ethereum #Opcodes #DApps