일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- JavaScript
- CLASS
- node.js
- built in object
- express.js
- Interface
- error
- graphQL
- SSR
- CSS
- API
- blockchain
- Props
- solidity
- middleware
- evm
- HTML
- bitcoin
- tailwindcss
- useState
- Redux
- nextJS
- typeScript
- concept
- 기준
- web
- 삶
- Ethereum
- REACT
- hardhat
- Today
- Total
목록overloading (2)
ReasonJun
Function overloading in Solidity allows you to define multiple functions with the same name but different argument types and/or numbers. This can be useful for creating more flexible and reusable code. For example, the following contract defines an overloaded add() function: contract Math { function add(uint256 a, uint256 b) public pure returns (uint256) { return a + b; } function add(uint256 a,..
In TypeScript, function overloading refers to the ability to define multiple function signatures for the same function name. This allows a function to accept different sets of arguments or have different return types based on the provided function signature. Function overloading enables you to provide different ways to call a function while maintaining type safety and clarity. It helps in creati..