Computer Applications
Fill in the blanks:
A member function having the same name as that of the class name is called _________.
Java Constructors
60 Likes
Answer
constructor
Answered By
3 Likes
Related Questions
Which constructor initialises data members with default values?
- Parameterized constructor
- Non-parameterized constructor
- Copy constructor
- Default constructor
What is not true for a constructor?
- It is used only to initialize the data members.
- It returns a unique value.
- It may not use parameter.
- None of the above.
Fill in the blanks:
A constructor has return _________ type.
Fill in the blanks:
A constructor is used when an _________ is created