adplus-dvertising
frame-decoration

Question

Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?

a.

No constructor defined

b.

One default value constructor

c.

Defining the default constructor

d.

Using one constructor with two arguments

Answer: (b).One default value constructor

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?