Q. Identify the correct way of declaring constructor.

Code:
Public class Solution {}
  • (A) Solution(){}
  • (B) public Solution(){}
  • (C) Solution(void){}
  • (D) Both (A) and (B)
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both (A) and (B)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
338
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mahesh Chandra
Publisher
πŸ“ˆ
90%
Success Rate