What Is The Use Of Constructor And Destructor In Oops?

1

1 Answers

Fahad Bari Profile
Fahad Bari answered
When  you  declare  a  class in  oops,  you  can  provide  with your own constructor to specify  custom initialization for objects of your class. Without  constructor your program  would not run. Constructor must have same name like class name.  There is no destructor  in java.

Answer Question

Anonymous