Hi....
when i use the new keyword
myobject obj1 = new myobject()
myobject obj2 = new myobject()
myobject obj3 = new myobject()
does each of the object have a complete instance of
myobject, or do they share the methods of myobject
another words..does each instance have a complet object/methods/date withing
itself
tks
public class myobject
{
public myobject()
{
....do some stuff;
}
public int dosomthing()
{
int iRet=0;
....do some stuff;
return iRet;
}
}
when i use the new keyword
myobject obj1 = new myobject()
myobject obj2 = new myobject()
myobject obj3 = new myobject()
does each of the object have a complete instance of
myobject, or do they share the methods of myobject
another words..does each instance have a complet object/methods/date withing
itself
tks
public class myobject
{
public myobject()
{
....do some stuff;
}
public int dosomthing()
{
int iRet=0;
....do some stuff;
return iRet;
}
}
Comment