Which of the following statements with reference to constructors in Object…

PYQ DSSSB 2022

Which of the following statements with reference to constructors in Object Oriented Programming is FALSE?

  1. A.

    Constructors return a value.

  2. B.

    Constructor is a special function that helps you instantiate an object of a class.

  3. C.

    Whenever you instantiate an object, a default constructor method is called.

  4. D.

    Default constructors do not take any parameters.

Attempted by 670 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…