Computer Applications
Which constructor initialises data members with default values?
- Parameterized constructor
- Non-parameterized constructor
- Copy constructor
- Default constructor
Related Questions
Which of the following statements is false?
- A constructor has same name as class name.
- A constructor returns initial value.
- A constructor is called while creating an object.
- A constructor is not used for arithmetical and logical operations.
A constructor is always:
- private
- protected
- secure
- public
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 member function having the same name as that of the class name is called _________.