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

Who made the first vaccine for covid 19?
Can anyone help me? A triangle has vertices at A(3,4), B(-3,2), C(-1,-4). Is the triangle a right triangle? Explain.
9x-12=5x-4 pls help
The graph below represents a rock climber’s height as she ascends a hill.
The above painting is Michelangelo Buonarroti's, Last Judgement. What is/was the source of inspiration for this famous painting? What does the painting depict?
Luis goes 4 laps every day to the athletics track and the track measures 800 meters how many km he runs in five days.​
. Find all the roots of this equation x 3 – 3x 2 + 4x – 12 = 0.
If you swim beneath the surface in saltwater, will the pressure be greater than in freshwater at the same depth? Why or why not?
Find the sum or difference 8+(-5)
List FIVE challenges James Cook faced on his drive north.