State whether the following statements are true or false:
(a) A constructor name is not the same as class name.
(b) In a class, you can have more than one constructor with the same name.
(c) Constructor does not return any value.
(d) A constructor that accepts no parameter is known as default constructor.
(e) Destructor never takes any arguments.
(f) Destructor is called automatically at the end of compound statement,
function or main program.
(g) Constructor initializes the data members of a class.
Answers
Answered by
0
Answer:
All are true sentences.
Similar questions
Accountancy,
5 months ago
English,
5 months ago
Geography,
5 months ago
India Languages,
10 months ago
Hindi,
1 year ago
Math,
1 year ago