1.

Which is used to create a pure virtual function?(a) $(b) =0(c) &(d) !The question was asked during an internship interview.This question is from Abstract Classes topic in chapter Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Correct OPTION is (B) =0

To EXPLAIN I would say: For making a method as PURE virtual FUNCTION, We have to append ‘=0’ to the class or method.



Discussion

No Comment Found

Related InterviewSolutions