
Hi experts,
I have a confusion here in this syntax anyone can tell me.
SrsReportRunController controller = new PurchPurchaseOrdercontroller();
can someone explain me this syntax
best Regards,
Shabir
PurchPurchaseOrdercontroller is a 4th level child class of SrsReportRunController.
PurchPurchaseOrdercontroller extends TradeDocumentReportController extends SrsPrintMgmtFormLetterController extends SrsPrintMgmtController extends SrsReportRunController.
A Base/Parent class reference variable can refer the child class Object.
More here: stackoverflow.com/.../what-is-polymorphism-what-is-it-for-and-how-is-it-used