(Similar title here. Different concept.)
Many OO languages provide an Interface construct that allows objects in unrelated class hierarchies to expose similar functionality that can be called via common methods. For example, a Car class and a Race class might both implement a Start method. Unless their common ancestor has a Start method (which may not be practical) there's no way for me to take advantage of dynamic dispatching. Interfaces allow an object to temporarily disguise itself as a different object so I can use a single vi on multiple objects.
Using the Car/Race example, I would like to be able to create an IStartable interface construct that defines a Start method. Car and Race, in implementing IStartable, create their own Start methods that will override IStartable.Start. I could then transform the Car and Race objects into an IStartable type and wire that into IStartable.Start. IStartable.Start would then automatically transform each object back into its original type and call its member Start vi.
A couple points:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Available in LabVIEW 2020 and later.