πŸ“Š Object Oriented Programming (OOP)
Q. What is a constructor?
  • (A) a class automatically called whenever a new object of this class is created.
  • (B) a class automatically called whenever a new object of this class is destroyed.
  • (C) a function automatically called whenever a new object of this class is created.
  • (D) a function automatically called whenever a new object of this class is destroyed.
πŸ’¬ Discuss
βœ… Correct Answer: (C) a function automatically called whenever a new object of this class is created.

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
649
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate