Jump to content

Method (object-oriented programming): Difference between revisions

From LabVIEW Wiki
Add new page
 
(No difference)

Latest revision as of 08:06, 3 April 2020

In object-oriented programming, a method is a function that belongs to a class and acts upon objects of that class.

Methods in LabVIEW

LabVIEW distinguishes between two types of methods: dynamic methods and static methods. A static method is a simple subVI call, which LabVIEW has had since its inception. A method is called "static" because the subVI node always calls the same subVI. In contrast, a dynamic method is a set of VIs. A dynamic subVI node uses dynamic dispatching to call one of the VIs in the set, but exactly which one is not known until run time.[1]

The accessibility of methods in LabVIEW is defined by their access scope.

References