Ask 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 specifier of private

+2
Answers (1)
  1. 4 March, 01:31
    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 & 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