B
BogusException
Wordy version: A single superclass has 2 different derived classes.
Looking for a way to copy one derived class to the other.
Scenario: Superclass S exists. 2 classes are derived from, and extend,
S. The 2 classes are A and B. A and B have unique members that neither
share. They only have their superclass in common. An instance of class
A needs to be copied into a new instance of B.
Of course the unique attributes, methods, etc. of the instance of
class A have no counter in class B, but the attributes that are within
the superclass do. So ideally, all attributes carried by both class A
and B (super included) would be copied, and any non-matching
attributes would not. If there was a [simple] way to do this (meaning
non-class-specific), I would then only have to worry about matching
the outliers.
Any ideas?
TIA!
Looking for a way to copy one derived class to the other.
Scenario: Superclass S exists. 2 classes are derived from, and extend,
S. The 2 classes are A and B. A and B have unique members that neither
share. They only have their superclass in common. An instance of class
A needs to be copied into a new instance of B.
Of course the unique attributes, methods, etc. of the instance of
class A have no counter in class B, but the attributes that are within
the superclass do. So ideally, all attributes carried by both class A
and B (super included) would be copied, and any non-matching
attributes would not. If there was a [simple] way to do this (meaning
non-class-specific), I would then only have to worry about matching
the outliers.
Any ideas?
TIA!