adplus-dvertising
frame-decoration

Question

Which among the following is possible way to overload constructor?

a.

Define default constructor, 1 parameter constructor and 2 parameter constructor

b.

Define default constructor, zero argument constructor and 1 parameter constructor

c.

Define default constructor, and 2 other parameterized constructors with same signature

d.

Define 2 default constructors

Answer: (a).Define default constructor, 1 parameter constructor and 2 parameter constructor

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 is possible way to overload constructor?