An interface in Solidity is a purely declarative structure that lists function signatures without any implementation.
Think of it as a menu or a protocol:
βThese are the functions you can call, but I wonβt tell you how they work.β
Key points:
interface keywordexternalI (e.g., IERC20)virtualπ To interact with deployed contracts without copying their entire source code.
Example: