Are abstract methods and pure virtual functions the same thing?

前端 未结 5 1058
佛祖请我去吃肉
佛祖请我去吃肉 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:40

    You don't explicitly declare classes or methods as abstract in C++. The presence of pure virtual methods is what makes them abstract.

提交回复
热议问题