asked 22.0k views
1 vote
Which of the following is not a possible header for the new constructor?

A) initialize
B) create
C) setup
D) destroy

asked
User Boerre
by
8.3k points

1 Answer

0 votes

Final answer:

A constructor is a special method used to initialize objects. 'Destroy' is not a possible header for a constructor.

Step-by-step explanation:

A constructor is a special method in object-oriented programming that is used to initialize objects. It is generally used to set the initial values of instance variables.

Out of the given options, destroy is not a possible header for the new constructor. The other options - initialize, create, and setup - are commonly used as headers for constructors.

answered
User Dinesh Ramasamy
by
7.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.