Solidity, Ethereum.
declare an interface, we use the keyword interface, followed by the name of the interface. Interfaces cannot inherit from contracts, but they can inherit from other interfaces. Let’s see the code below. It is perfectly valid. //SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface Foo {}