Solved

Which of the Following Is True About a Constructor in Java

Question 2

Multiple Choice

Which of the following is true about a constructor in Java?


A) all constructors have a return type of void
B) a constructor cannot have parameters
C) a constructor has the same name as the class
D) a class can only have a single constructor

Correct Answer:

verifed

Verified

Related Questions