Jump to content

how can i check a class instance is valid?


photo

Recommended Posts

Posted

say

class A { }

A a;

 

how can i check a is instanced? i tried if (a) but not work.

Posted

if (a != NULL)

 

for some reason if (a) not work

×
×
  • Create New...