Advertisements
Advertisements
Question
If the name of the class is "Yellow", what can be the possible name for its constructors?
Options
yellow
YELLOW
Yell
Yellow
MCQ
Solution
Yellow
Explanation:
The constructor will have the same name as the class itself.
shaalaa.com
Is there an error in this question or solution?