Explanation: An object with a constructor cannot be used as a member of a union. A union is a limited form of the class type. It can contain access specifiers (public, protected, private), member data, and member functions, including constructors and destructors. It cannot contain virtual member functions or static data members. Default access of members in a union is public. A union cannot be used as a base class and cannot be derived from a base class. (same with the constructor too, constructor cannot be inherited, though a derived class can call the basic class constructor). 8) The constructors that can take arguments are called ___________
A. Default Constructor
B. Copy Constructor
C. Parameterized Constructor
D. Dynamic Constructor
Answer:A
Explanation: An object with a constructor cannot be used as a member of a union. A union is a limited form of the class type. It can contain access specifiers (public, protected, private), member data, and member functions, including constructors and destructors. It cannot contain virtual member functions or static data members. Default access of members in a union is public. A union cannot be used as a base class and cannot be derived from a base class. (same with the constructor too, constructor cannot be inherited, though a derived class can call the basic class constructor). 8) The constructors that can take arguments are called ___________
A. Default Constructor B. Copy Constructor C. Parameterized Constructor D. Dynamic Constructor
Explanation: In order to initialize the various data elements of different objects with different values when they are created parameterized constructors are used. 9) When an object is created and initialized at the same time, a _________ constructor gets called.