adplus-dvertising
frame-decoration

Question

Which among the following best describes the constructors?

a.

A function which is called whenever an object is referenced

b.

A function which is called whenever an object is created to initialize the members

c.

A function which is called whenever an object is assigned to copy the values

d.

A function which is called whenever an object is to be given values for members

Answer: (b).A function which is called whenever an object is created to initialize the members

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following best describes the constructors?