edited by
1,546 views
1 votes
1 votes

Which of the statements below are true ?

  1. default constructor does not accept a parameter
  2. constructor can accept a reference to its own class as parameter
  3. copy constructor is known as copy initialization
  4. destructor accepts any type of value as parameter
    1. i and iii
    2. i, ii and iii
    3. ii and iii
    4. All of the above
edited by

1 Answer

Related questions

0 votes
0 votes
1 answer
1
anonymous asked Apr 2, 2018
413 views
If I allocate the memory using new operator to member in constructor I.e dynamic constructor than should I have to write delete in destructor
0 votes
0 votes
0 answers
2
kd..... asked Mar 31, 2018
392 views
if we call the constructor than did the constructor will implicitly calls the new operator to allocate memory and it is from the heap area?
0 votes
0 votes
2 answers
3
0 votes
0 votes
1 answer
4
parvati h asked Jun 25, 2016
958 views