Which of the following C++ statements correctly declares an abstract class?

UGC NET 2024

Which of the following C++ statements correctly declares an abstract class?

  1. A.

    class A { virtual void show()=0; };

  2. B.

    class A { void show()=0; };

  3. C.

    class A { void show() { } };

  4. D.

    class A { show()=0; };

Attempted by 249 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…