engineering recuitment NIELIT Scientific Assistant Mock Test 2025 Programming and Data Structure OOPs concept
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
(i) and (iii) only
2
(i), (ii) and (iii)
3
(i) and (ii) only
4
(ii) and (iii) only