Ask Question
26 September, 18:45

True or False and WHY:

Constructors can have names different from theirclasses.

+2
Answers (1)
  1. 26 September, 22:07
    0
    False

    Explanation:

    Constructors have to have the same name as their classes for proper syntax, if their names are different it will result in an error. Methods contained within the class can/should have different names, it is allowed because methods require return types while constructors cannot have return types.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “True or False and WHY: Constructors can have names different from theirclasses. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers