What is constructor? What is its benifit of using them in programs? How it differ from class as a user define?
Answers
Answered by
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.
1)A constructor eliminates placing the default values.
2)A constructor eliminates calling the normal method implicitly.
Similar questions
Chemistry,
8 months ago
English,
8 months ago
Math,
8 months ago
Math,
1 year ago
Political Science,
1 year ago