ICSE Class 10 Computer Applications
Question 4 of 19
Constructors — Question 4
Back to all questions 4
Question Question 4
Describe the importance of parameterised constructors.
Parameterized constructors are important because they provide a way to initialize objects with different values. For example, if we have a class representing a bank account, we could use a parameterized constructor to initialize a bank account with a specific balance, rather than always starting with a balance of zero. This makes the class more flexible and reusable, as it can be used to create objects with a variety of different initial states.