B
barry
Is there any way that I can have a piece of code create properties and
give them names for either the same class or a different class.
For example (this problem could be solved with inheritance but its
just to help present my question):
If I have a class called "shape" and I want a seperate piece of code
to give the appropriate properties for the object such as radius,
length, height, etc. based on the type of shape it is.
Thank you.
give them names for either the same class or a different class.
For example (this problem could be solved with inheritance but its
just to help present my question):
If I have a class called "shape" and I want a seperate piece of code
to give the appropriate properties for the object such as radius,
length, height, etc. based on the type of shape it is.
Thank you.