【c#学习笔记】在一个构造方法中调用另一个构造方法的写法

    xiaoxiao2021-03-25  56

    public Vector3D() : this(1f, 1f, 1f)//用this来调 { } public Vector3D(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }
    转载请注明原文地址: https://ju.6miu.com/read-36381.html

    最新回复(0)