This is a dumb question but it\'s been a long time since I\'ve worked with java... How can I write my constructor with Boolean values or should I just write a default construct
If you use the constructor which has parameters, it goes like this
this.flyingCreature = flying;
this.magicCreature = magic;
and so on.
If you use the constructor without any parameters (the default constructor), then you need to set the class fields to some constants (like you did). So you do e.g.
this.flyingCreature = false;
this.magicCreature = false;
and so on.
The use of this.
is not mandatory unless you have a parameter with the same name in which case you should use this.
otherwise your initialization code will have no effect on the class field.