Ask Question
6 March, 17:30

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

+2
Answers (1)
  1. 6 March, 20:13
    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?
Get 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 & 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