Q:

Why is a pure virtual function initialized by 0 in c++?

0

Why is a pure virtual function initialized by 0?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

The reason =0 is used is that Bjarne Stroustrup didn’t think he could get another keyword, such as “pure” past the C++ community at the time the feature was being implemented.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions For Experienced

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Can we access private data members of a class with... >>
<< What is difference between Virtual function and Pu...