Ask Question
15 June, 15:52

A constructor is used to: Group of answer choices ... initialize the instance members of a class ... initialize the static members of a class ... initialize both instance and static members of a class ... declare the member variables of a class.

+1
Answers (1)
  1. 15 June, 19:34
    0
    Initialize both the instance and static members of a class

    Explanation:

    A constructor is classified under special functions having the function name to be the same as the class name. Its basic use is for constructing and initializing all the data members. When creating a new instance for a class, the name of the instance must be declared and then the constructor is invoked. Static constructor are used for the initialization of static data.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A constructor is used to: Group of answer choices ... initialize the instance members of a class ... initialize the static members of a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers