Computer Science, asked by Muskangarg151, 1 year ago

What is constructor? What is its benifit of using them in programs? How it differ from class as a user define?

Answers

Answered by ramesh87901
1
constructor  is a special type of subroutine called to create an object

1)A constructor eliminates placing the default values.
2)A constructor eliminates calling the normal method implicitly.
Similar questions