Which one is true about a constructor ?

A. A constructor must have the same name as the class it is declared within.

B. A constructor is used to create objects.

C. A constructor may be declared private

D. All of the above

Show Answer
Answer = Option D
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x