Question: If foo is an abstract class in a C++ program, why is it acceptable to declare variables of type foo*, but not of type foo?

If foo is an abstract class in a C++ program, why is it acceptable to declare variables of type foo*, but not of type foo?

Step by Step Solution

3.26 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

A variables type determines the values that the variable can have and the operat... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Language Pragmatics Questions!