Interfaces and Librariese
Interfaces
interface Operator {
fn performOperation(u32 a, u32 b) -> (u32);
}import "./operator.ola"
contract Ferqu {
Operator public operator;
// Function to calculate the result of the operation performed by the chosen operator.
fn calculate(u32 a, u32 b) -> (u32) {
return operator.performOperation(a, b);
}
}Libraries
Last updated