Yes, when a class is defaulted, its members - including variables - are initialized to their default values. For numeric types such as int or float, the default value is zero. For bool type, the default value is false. For pointer types, the default value is nullptr.
Asked: 2021-05-17 11:00:00 +0000
Seen: 7 times
Last updated: May 06 '21