Thursday, November 20, 2008

The Contract

Different programming languages have different amounts of support built in for object oriented programming, but object oriented programming is a design concept more than it is a language feature. LabVIEW 7.x has no inherent features to support object oriented programming, but we can still design our software application using object oriented techniques by establishing a contract. The contract is that we as developers will only access an object from outside the class via its public methods, that we will only access the data from within the class using private methods, and that we will never access the data directly.

No comments: