A

Admin • 802.91K Points
Coach

Q. Which is a valid method reference to a constructor?

  • (A) ClassName::methodName
  • (B) ClassName::new
  • (C) new::ClassName
  • (D) ClassName::create

Explanation by: Admin
`ClassName::new` refers to a constructor reference.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.