3.3.3 构造函数

feng 2022-11-06 12:12:01
Categories: Tags:

title: 构造函数
date: 2022-10-15 19:23:40
tags:

solidity 的 构造函数和 java 也是一样的,初始化执行。

contract ConstructorTest {
    
    uint256 public price;

    constructor(uint256 _input){
        price = _input;
    }

   
}