Q. How can we make a class abstract?

  • (A) By making all member functions constant.
  • (B) By making at least one member function as pure virtual function.
  • (C) By declaring it abstract using the static keyword.
  • (D) By declaring it abstract using the virtual keyword.
πŸ’¬ Discuss
βœ… Correct Answer: (B) By making at least one member function as pure virtual function.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
104
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
97%
Success Rate