मराठी

"Member method and constructor can be defined private". Write whether the given statement is true or false, give reasons. - Computer Applications

Advertisements
Advertisements

प्रश्न

"Member method and constructor can be defined private". Write whether the given statement is true or false, give reasons. 

पर्याय

  • True

  • False

MCQ
चूक किंवा बरोबर

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Constructors - Review Insight [पृष्ठ ४१५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 7 Constructors
Review Insight | Q 4. | पृष्ठ ४१५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×