Ask Question
31 July, 13:22

A constructor: A. always accepts two arguments B. has return type of void C. has the same name as the class D. always has an access specifier of private

+4
Answers (1)
  1. 31 July, 13:59
    0
    Option (C)

    Explanation:

    A constructor is distinguished from other member functions of the class by having the same name as of its class. Otherwise, it will not be called a constructor. A constructor can have 0 or more passing arguments. A constructor never returns anything as they are used for default initialization of the variables of a class. Also, a private constructor cannot be instantiated so it is very rare for a constructor to be private.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A constructor: A. always accepts two arguments B. has return type of void C. has the same name as the class D. always has an access ...” 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