What is the purpose of a constructor in OOP?

PYQ Bihar STET 2025

What is the purpose of a constructor in OOP?

  1. A.

    To destroy objects

  2. B.

    To create instances of abstract classes

  3. C.

    To initialize object properties

  4. D.

    To define abstract methods

Attempted by 1234 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bihar Stet Computer Science Complete Course

Loading lesson…