Identify the correct statements. (i) Derived classes do not inherit or…

PYQ DSSSB 2018

Identify the correct statements.
(i) Derived classes do not inherit or overload constructors or destructors from their base classes.
(ii) Destructors can be declared with the keyword virtual.
(iii) Constructors can be declared with the keyword virtual.

  1. A.

    (i) and (iii) only

  2. B.

    (i) and (ii) only

  3. C.

    (ii) and (iii) only

  4. D.

    (i), (ii) and (iii)

Attempted by 898 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…