I donβt know what language you asked the question from, but I will still try to answer in C ++ and Java
In C ++, it:
- leaves built-in types (
int , float , pointers, etc.) to an uninitialized value - calls the default constructor for class members
In Java, I think that all members of the class are initialized to the default value (0 or NULL).
source share