Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在Windev中,是否可以声明具有不同范围的多个构造函数?似乎没有。
例如:
PROCEDURE CONSTRUCTOR (param1, param2) ... PROCEDURE PROTECTED CONSTRUCTOR (paramx, paramy, paramz) ...
当我试图以这种方式做事时,它给了我一个错误,说属性 public、protected 和 private 在同一过程的语法之间必须相同。
向现有过程添加语法: 在项目资源管理器中,选择过程。显示过程的弹出菜单并选择“添加语法”。代码编辑器中会自动创建新语法。
看这个 :
https://doc.windev.com/en-US/?1514063&name=surcharge_prototypemultisyntaxe&1514063&name=surcharge_prototypemultisyntaxe
希望能帮助到你 !