Overload constructors in VBScript

后端 未结 4 1943
逝去的感伤
逝去的感伤 2021-01-31 21:13

I found a way to extend classes in VBScript, but are there any ways to pass in parameters or overload the constructor? I am currently using an Init function to initialize the p

4条回答
  •  长情又很酷
    2021-01-31 21:49

    You have to do it in two steps. VB Script doesn't support overloading so you can't modify the default constructor with new parameters. Same goes for Vb6

提交回复
热议问题