Advertisements
Advertisements
Question
"Member method and constructor can be defined private". Write whether the given statement is true or false, give reasons.
Options
True
False
MCQ
True or False
Solution
This statement is False.
Explanation:
A member method can be private but a constructor can never be declared private because the object creation outside the class may not be possible. Hence, the given statement is false.
shaalaa.com
Is there an error in this question or solution?