Question 24Asked in UGC NET Computer Science, December 2015 (Paper II & III, Selected Questions)

Which of the following is used to make an Abstract class?

  1. AMaking atleast one member function as pure virtual function
  2. BMaking atleast one member function as virtual function
  3. CDeclaring as abstract class virtual keyword
  4. DDeclaring as Abstract class static keyword
Show answerHide answer

Correct answer: (A) Making atleast one member function as pure virtual function

Explanation

To make a class abstract, at least one member function should be made a pure virtual function.

From UGC NET Computer Science PYQ, December 2015 (Paper II & III, Selected Questions)

This is question 24 of UGC NET Computer Science PYQ, December 2015 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.