class myBatch { // commonly required method put into parent // class referencing properties defined in child public function foo() { sumNums() } } class myBatchClientTrustGicPurchase extends myBatch { // properties specific to the extending class public function sumNums() { return 1+5+18; } } class myBatchClientTrustGicPurchase extends myBatch { // properties specific to the extending class public function sumNums() { return 100+9+47; } }