If a class has multiple constructors, it can be said to have constructor ________.

  • chaining
  • overloading
  • overriding
  • polymorphism
When a class has multiple constructors with different parameter lists, it is said to have constructor overloading. Constructor overloading allows you to create multiple constructors in the same class, each with a different set of parameters. This is a form of method overloading specific to constructors. Constructor overriding is not a valid term in Java.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *