Skip to content
Related Articles

Related Articles

C++ | Virtual Functions | Question 4

Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 10 Jul, 2021
Improve Article
Save Article

Which of the following is true about pure virtual functions?

1) Their implementation is not provided in a class where they are declared.
2) If a class has a pure virtual function, then the class becomes abstract class and an instance of this class cannot be created.
(A) Both 1 and 2
(B) Only 1
(C) Only 2
(D) Neither 1 nor 2

Answer: (C)

Explanation: See

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!