Ask Question
21 May, 12:38

True or False and WHY:

Constructors can have names different from theirclasses.

+1
Answers (1)
  1. 21 May, 14:05
    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?
Find an answer to your question ✅ “True or False and WHY: Constructors can have names different from theirclasses. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers