kaylarae4855 kaylarae4855
  • 18-07-2019
  • Computers and Technology
contestada

True or False and WHY:
Constructors can have names different from theirclasses.

Respuesta :

demimurray573
demimurray573 demimurray573
  • 28-07-2019

Answer:

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.

Answer Link

Otras preguntas

20 divided by 2 (5+5)=
how did the nation reflect a growing sense of national pride and identity
An antonym (a word with a different meaning) for the word fresh as it is used in this passage would be old. recently made. cold. happy.
What kinds of landforms are found in Greece?
Which word correctly completes the sentence? My favorite tropical __________ fins almost seem to glow in the water. A. fishs' B. fishes C. fish's
what unit would be used to measure the weight of a small bag of rice
~Please Help~ Please first state the answer and say which one you are answering for. Then show how you got to it. -Thank you :) ***Only answer is you know for
the Parthenon was a temple to the goddess of? im doing a cross word puzzle the word has to be 3 letters
What kind of help does the support group American Council on Alcoholism provide? A.It helps friends and family deal with the alcoholic. B.It provides referrals
In Ireland, what does the color green stand for? Spring Countryside Hope