Which of the following statements with reference to constructor in C++ is FALSE?
PYQ DSSSB 2022Modified — slightly modified from the official paper; see the solution
Which of the following statements with reference to constructor in C++ is FALSE?
- A.
It should not have the same name as the class.
- B.
It is a special method that is automatically called when an object of a class is created.
- C.
It is always public.
- D.
It does not have any return value.
Attempted by 728 students.
Sign up free to check your answer
Sign up freeLoading lesson…

