@roya1999
Visibility Specifier in Solidity:
Functions can be declared as
public: any contract and account can call
private: only inside the contract of the function
internal: only inside contract that inherits an internal function
external: only other contracts and accounts
State variables can't be declared as external.