help with making object properties

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top