TTilley297 TTilley297
  • 03-12-2021
  • Computers and Technology
contestada

How to make classs constructer java.

Respuesta :

Аноним Аноним
  • 03-12-2021

Answer:

A constructor doesn't have a return type.

The name of the constructor must be the same as the name of the class.

Unlike methods, constructors are not considered to be members of a class.  

A constructor is called when a new instance of an object is created.

Explanation:

Answer Link

Otras preguntas

calculate the kinetic energy of a 4kg cat running 5m/s
Round 99.49 to the nearest whole number
apathy A. being aware of B. lack of feeling C. sense of excitement D. lack of trust
If you grow 738 pumpkins and sell 481, how many do you have left? A. 481 B. 1,209 C. 690 D. 257
Which events sparked World War I? Check all that apply.
How do you summarize a passage? borrowing the exact words from the source restating a section of text from the source expressing the main ideas of the passage i
Which sentence uses quotation marks correctly? A. Have you seen the wonderful Japanese animated movie called "My Neighbor Totoro"? B. My father enjoys reciting
Which country has the highest population in Africa? Niger Cape Verde Ghana Nigeria
Which word should not be hyphenated to fit on a line? A. charge B. automatic C. divided D. register
Solve by taking the square root of both sides. (3x+3)^2=25