Computer Science, asked by kukku198, 5 months ago

write syntax rules for writing deconstructor function​

Answers

Answered by arunimabanerjee068
0

Answer:

Rules for writing Constructor:

  • Constructor(s) of a class must have same name as the class name in which it resides.

  • A constructor in Java can not be abstract, final, static and Synchronized.

  • Access modifiers can be used in constructor declaration to control its access i.e which other class can call the constructor.

Explanation:

if u think that it is copied form google then u will report me.... it is frm my tuition copy......

Similar questions