In reply to dave_59:
Dave , I believe there’s a few typos
class ex_base ;
should be
class ex_base extends base ; // Should extend base
int p2;
function void copy(base orig);
super.copy(orig); // Arg. name should be 'orig'
this.p2 = orig.p2;
endfunction