English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

State whether the following statements about the constructor are True or False. i) constructors should be declared in the private section. ii) constructors are invoked automatically when the objects - Computer Science

Advertisements
Advertisements

Question

State whether the following statements about the constructor are True or False.

i) constructors should be declared in the private section.

ii) constructors are invoked automatically when the objects are created.

Options

  • True, True

  • True, False

  • False, True

  • False, False

MCQ

Solution

False, True

shaalaa.com
  Is there an error in this question or solution?
Chapter 14: Classes and objects - Evaluation - Section – A [Page 246]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 14 Classes and objects
Evaluation - Section – A | Q 7. | Page 246
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×