Sometimes I see object pointers set, without allocating or initializing them. For example:
MyObject *object;
And then it will be later assigned to a value. My guess is that this is more efficient, or a good way to not use memory until it's needed?
I've found answers like this one that touch on it, but I don't have much background in C++ or Java. If there are any Redditers out there, or someone who could Explain Like I'm Five, I'd love that.