A

Admin • 833.24K Points
Coach

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)
  • Correct Answer - Option(D)
  • Views: 26
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.