Please enable JavaScript to view this site.

DAQFactory User's Guide

Navigation: 5 Sequences & Scripting > 5.20 Object Oriented Programming

5.20.6 Initialization of Member Variables

Scroll Prev Top Next More

You can create default values for your member variables two ways.  You can use the OnCreate() member function that we'll talk about later, or you can simply initialize them in the class definition:

 

class PersonPhone parent Person

  local string phone = "Not Entered"

endclass