Questions
- You are writing a smart contract that stores employee data, such as the employee ID, as well as their name and age. The contract will store information about multiple employees. You want to retrieve the employees using their employee ID without iterating through all the employees. Which data type should be used to store the employees?
- Can a mapping be defined within a
contract
function? - Which data types are referred to as reference types?