Q. A Constructor -

  • (A) is used to create objects
  • (B) must have the same name as the class it is declared within
  • (C) is a method of a class
  • (D) Both B and C
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both B and C

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
310
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate