Ask Question

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.

+4
Answers (1)
  1. 12 July, 21:50
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers