P
Publicjoe
OK, my brain has turned to mush on this one.
I want to implement some constant integers that can be used by several
classes in the same namespace. i.e.
namespace MySpace
{
const int THEBOXWIDTH = 24;
const int THEBOXHEIGHT = 48;
class A
{
private int theHeight = THEBOXHEIGHT;
}
class B
{
private int theHeight = THEBOXHEIGHT;
}
}
How can I achieve this? Am I going to have to use enums?
Thanks in advance
Mike
I want to implement some constant integers that can be used by several
classes in the same namespace. i.e.
namespace MySpace
{
const int THEBOXWIDTH = 24;
const int THEBOXHEIGHT = 48;
class A
{
private int theHeight = THEBOXHEIGHT;
}
class B
{
private int theHeight = THEBOXHEIGHT;
}
}
How can I achieve this? Am I going to have to use enums?
Thanks in advance
Mike