F
fl
Hi,
I read book: C++ primer. On Chapter 12, it says that: If aclass contains data members of build in or compund type, then the class should not rely on the synthesized default constructor, It snould define its own constructor to initialize these members.
My question is: What type can use synthesized constructor?
It mentions that class without constructor can use the synthesized constructor, but I doubt that whether class is a compound type?
What types are left after build-in, compound? I do not get the categories of the types yet.
Thanks,
I read book: C++ primer. On Chapter 12, it says that: If aclass contains data members of build in or compund type, then the class should not rely on the synthesized default constructor, It snould define its own constructor to initialize these members.
My question is: What type can use synthesized constructor?
It mentions that class without constructor can use the synthesized constructor, but I doubt that whether class is a compound type?
What types are left after build-in, compound? I do not get the categories of the types yet.
Thanks,