Exam
Vibe
Home
Engineering
Aerospace Engineering
Biomedical Engineering
Chemical Engineering
Civil Engineering
Computer Science
Electrical Engineering
Electronics and Communication Engineering
Mechanical Engineering
Govt Exam
Banking Exams
Other Government
Police
Railway Exams
SSC
State PSC Exams
Teaching / Education Exams
UPSC Exams
Blog
Contact
๐
Home
โบ
Computer Science
โบ
C++ MCQ Questions
โบ
Which of the following is used to define a pure virtual f...
Which of the following is used to define a pure virtual function in C++?
A. virtual void f();
B. virtual void f() = 0;
C. abstract void f();
D. virtual pure f();
Explanation:
Pure virtual functions are declared with = 0.
Tags:
C++ MCQ Questions
,
Computer Science
ยซ Previous
Next ยป
More from C++ MCQ Questions:
Which of the following is not a feature of C++?
Which of the following is used to define a class in C++?
Which concept allows the use of the same function name with different parameter lists?
Which operator cannot be overloaded in C++?
Which of the following is the correct syntax to declare a constructor?
Which feature of OOP in C++ provides data hiding?