English

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

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
Advertisements

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
Advertisements
Share
Notifications



      Forgot password?
Use app×