Computer Applications

In constructor overloading, …………… .

  1. All constructors must have the same name as that of the class.
  2. All constructors must have the same number of arguments.
  3. All constructors must have arguments of type String[] args.
  4. All constructors must have no arguments.

Java Constructors

3 Likes

Answer

All constructors must have the same name as that of the class.

Reason — In constructor overloading, all constructors must have the same name as that of the class.

Answered By

3 Likes


Related Questions