View Single Post
  #5 (permalink)  
Old 12-23-2007, 06:03 PM
screamest screamest is offline
Newbie
 
Join Date: Dec 2007
Posts: 1
Credits: 0
Rep Power: 0
screamest is on a distinguished road
Default

In the object class you could have a default constructor that initializes the variables to 0. E.g.

public class objectName {

int var1, var2, var3;

public static objectName()
{
var1 = var2 = var3 = 0;
}

public static objectName(int var1, int var2, int var3)
{
var1 = var1;
var2 = var2;
var3 = var3;
}
}
Reply With Quote

Sponsored Links