Question: What is a constructor? When does a constructor execute?
What is a constructor? When does a constructor execute?
Step by Step Solution
3.30 Rating (144 Votes )
There are 3 Steps involved in it
A constructor is a special method in a class that is used to initialize the objects state It has the ... View full answer
Get step-by-step solutions from verified subject matter experts
