Objective 6.2)
Which of the following statements are true?
1) Constructors cannot have a visibility modifier
2) Constructors can be marked public and protected, but not private
3) Constructors can only have a primitive return type
4) Constructors are not inherited
Answer :
4) Constructors are not inherited
Constructors can be marked public, private or protected. Constructors do not have a return type.
No comments:
Post a Comment