G
greenflame
I am trying to make this object that has lots of properites and some
methods. It has one main property that I guess I might want to have be
defined. I would like to be able to create the object without any
inputs and manually modify the properties that I want later. How do I
do this?
Also I have some properties that depend on others and I was wondering
what happened to the properties that are dependent on others before,
while, and after I assign it its value.
Do you think I should just require that property that I think I should
make mandatory as the input for the function that makes the object.
Also some of the properties depend on this property.
Also how do I test if a variable is of this new object type?
methods. It has one main property that I guess I might want to have be
defined. I would like to be able to create the object without any
inputs and manually modify the properties that I want later. How do I
do this?
Also I have some properties that depend on others and I was wondering
what happened to the properties that are dependent on others before,
while, and after I assign it its value.
Do you think I should just require that property that I think I should
make mandatory as the input for the function that makes the object.
Also some of the properties depend on this property.
Also how do I test if a variable is of this new object type?