Is this class considered abstract because it only contains one virtual function? 
I could still build an Animal object and use getFoodCost();
No. In C++, a "Abstract Class" is often a class having a single pure virtual function:
class Abstract {
public:
    virtual ...READ MORE
Jun 20, 2022
in C++
by 
Damon
• 4,960 points 
•
1,236 views