What is a constructor in Java?
A. A method that has no return type.
B. A method that is declared with the "static" keyword.
C. A special method that is called when an object is instantiated.
D. None of the above.
Answer:C
What is a constructor in Java?
A. A method that has no return type. B. A method that is declared with the "static" keyword. C. A special method that is called when an object is instantiated. D. None of the above.