Multiple choice technology programming languages

constructors can have any of the access modifiers: public, protected, private.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Constructors can indeed have public, protected, or private access modifiers. Public constructors allow instantiation from anywhere, protected from subclasses and same package, and private restricts instantiation (used in singleton pattern). The default constructor's access matches the class's access modifier.