please answer this question of ICSE class-10 computer applications.state any two features of constructor.
Attachments:
Answers
Answered by
6
1.) constructors have the same name as that of the class they belong to
2.) constructors are executed when an object is declared.
3.) constructors have neither return value nor void
4.) constructors can have default values and can be overloaded
5.)
2.) constructors are executed when an object is declared.
3.) constructors have neither return value nor void
4.) constructors can have default values and can be overloaded
5.)
Answered by
2
it is called in program uhen constuctor is called
it plays a vital role in progamming languages
it plays a vital role in progamming languages
Similar questions