Objects and Classes - General Questions :: Discussion


5.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.
Answer:  Option  B
Explanation:

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers