br4kejet
Update an enum in a child class
The thing about OOP is sometimes you have to redefine the same properties for different classes because extending a base class isn't really possible, and if you ever run into that, you might have to use some sort of composition class that contains those properties that can be shared across different types. You might not run into it, but it's an annoying thing to deal with when using complicated inheritance 😛
42 replies
Making a field eligible for GC
If it's anything like java then Collect is just a hint, it might not actually collect and it might not collect everything (it might decide to collect things in gen0, but _entities might be in gen1 or gen2 because it's a field)
6 replies