#ELI30 class instance attributes
1 messages · Page 1 of 1 (latest)
If direction is declared as member variable then direction is same as this.direction with this. just omitted
ok that's what it seems like, but that's kinda...confusing
oh, like it has to have a the member attribute? or what?
No member variable is the variable declared inside of the class
oh, and how do you make class variables?
variables constant for the whole class, i mean
static or const depending on usage
wait but i have noticed sometimes that referencing direction won't work but this.direction does?
When would be it?
idk anymore. i changed everything to this. , but i'm switching back lol
Why did you do that lol