Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Creating Objects

Objects are usually created by using the new keyword followed by an object constructor function. For example,

var x=new MyConstructor();

The constructor is a special function you create that assigns default property values. You can also create an object using the default object constructor Object. For example,

var x=new Object();

Once you create an object, you can assign values to its properties as follows:

x.name="Pi";
x.value=3.1415;

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend