Ask Question
28 December, 22:29

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.

+3
Answers (1)
  1. 29 December, 00:02
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers