English

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

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?
Chapter 7: Constructors - Review Insight [Page 415]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 7 Constructors
Review Insight | Q 4. | Page 415
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×