Tracks : Inheritance II
Global and Primary Tracks are derived classes
- class StGlobalTrack : public StTrack { … };
- class StPrimaryTrack : public StTrack { … };
- Most of the implementation is in StTrack: reuse!
- They only have to provide implementation of the 2 pure virtual methods of StTrack.