取消
显示结果 
搜索替代 
您的意思是: 

Question about parentclass object to subclass object conversion in LVOOP

I saw an example project, changing an enumeration item in the passed parent object data, the object becomes the corresponding subclass of the enumeration item, how is this implemented (or labview object-oriented has this mechanism)?

The example documents can be found in the annex.

 

 

 

nzywlll80gmailcom_0-1689496058530.png

 

 

 

 
0 项奖励
1 条消息(共 5 条)
1,429 次查看

In Demo #2, there are no child classes for different brews. Instead, there are different child classes for size.

ZYOng_0-1689531610810.png

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 项奖励
2 条消息(共 5 条)
1,372 次查看

In the block diagram i have been  post, after the Set Brew method call, the Drink class change to the corresponding Brew class,corresponding.How is this implemented?

0 项奖励
3 条消息(共 5 条)
1,358 次查看

In the block diagram i have been  post, after the Set Brew method call, the Drink class change to the corresponding Brew class,corresponding.How is this implemented?

0 项奖励
4 条消息(共 5 条)
1,357 次查看

See the images below. The object is the Drink class until a new instance of Size/Brew class is used to replace the array at the Select Size event.

ZYOng_0-1689549190821.png

ZYOng_1-1689549205793.png

ZYOng_2-1689549215525.png

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 项奖励
5 条消息(共 5 条)
1,341 次查看