Are abstract methods and pure virtual functions the same thing?

前端 未结 5 1076
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 05:05

As far as I know, both abstract methods and pure virtual functions do NOT provide any functionality ... So can we say they\'re both the same thing ?

Also, suppose a

5条回答
  •  眼角桃花
    2020-12-24 05:26

    In C++, a pure virtual member function leads to the enclosing type being an "abstract type".

    Functions themselves cannot be abstract, though the term is frequently misused in this manner.

提交回复
热议问题