Lets suppose i have a super class WorkStation, and two subclass StationNormal, StationAdvanced. I have another class Robot, which has a WorkStation pointer that will start as a StationAdvanced but it can change, but my class WorkStation is a abstract class. I think class Robot should be something like this:
class Robot{
private:
WorkStation * actualStation;
...
}
My question is how Robot class constructor should be defined if my class WorkStation is abstract.
I think the following should be sufficient:
You can invoke it with: