Advertisements
Advertisements
Question
Explain two features of a constructor.
Short Answer
Solution
- The constructor has the same name as the class.
- No value, not even void, is returned by constructors.
shaalaa.com
Is there an error in this question or solution?