Multiple choice

When constructor is invoked, _____________.

  1. object is destroyed

  2. object is created

  3. class is destroyed

  4. class is created

  5. both object and class are created

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

It is the correct answer because constructor invoked automatically when object is created.