ICSE Class 10 Computer Applications
Question 17 of 19
Constructors — Question 17
Back to all questions 17
Question Question 17
List some of the special properties of the constructor functions.
Some of the special properties of the constructor functions are as follows:
- It has the same name as that of its class.
- It doesn't have any return type, not even void.
- It adheres to the rules of access specifiers.
- It can be parameterized or non-parameterized.
- It is used to create and initialize objects from a class.
- It can be overloaded to provide multiple ways of creating objects with different initialisation parameters
- It is always called implicitly when an object is created using the
newkeyword.