There is a mammal class and dog + cat inherit mammal.
If I had a function to which you pass a mammal pointer but it is intended to be passed a dog or cat, how could you check what type of class...
Type: Posts; User: humbled
There is a mammal class and dog + cat inherit mammal.
If I had a function to which you pass a mammal pointer but it is intended to be passed a dog or cat, how could you check what type of class...
We have a mammal class, and a dog class which inherits mammal.
Class dog has wagTail() func
Since we can do...
mammal *ptr = new dog;
... how can one access wagTail() using *ptr?
The...
or I can just mammal(); in the mammal class right? Thanks for pointing it out
Probably because of my newbishness but
what's wrong with this? Thanks for helpin'
class mammal
{
public:
mammal(int);
};
How would I set up allegro to work with codewarrior?