Suppose I have a base class named Visitor, and it has 2 subclass Subscriber and NonSubscriber.
At first a visitor is start off from a NonSubscriber, i.e.
<
You will have to create a new mary = new Subscriber(); and copy all relevant properties.
mary = new Subscriber();
But a better approach might be to model it differently: Give Visitor a list of subscriptions. An empty list means a NonSubscriber.
Visitor