will a compiler generated constructor/empty constructor always be called when you instantiate an object? No. If your class is a so-called “POD” (plain old data) then the compiler-generated constructor won’t always be called .
will a compiler generated constructor/empty constructor always be called when you instantiate an object? No. If your class is a so-called “POD” (plain old data) then the compiler-generated constructor won’t always be called .