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

What is the best source of information for deciding whether a product meets your needs? the product's advertisements the product's brand name the product's labe
The federal pure food and drug act of 1906 defined an adulterated drug as a drug that a. contains a decomposed substance or whose strength, quality, or purity
For which reason did the american textile industry move from new england to the southern states?
if 8 Euros we're worth $9 and 24 Euros were worth $27 write an equation of the form y equals KX to show the relationship between the number of euros and the val
Which of the following was NOT a legacy of the Civil War? A)economic hardship for the South B)freedom for former slaves C)increased nationalism D)the idea of nu
Is making salt water a physical or chemical
how to adjust 65 and 2،210
what subunits form startch
software that instructs the computer how to run applications and controls the display/keyboard is known as the
representative of american culture