function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sree SalesforceSree Salesforce 

explain the real time scenario where we are using polymorphism concept.any one give the example

Ashish_SFDCAshish_SFDC
Hi Sri, 


See the links below,

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_example.htm

http://salesforce.stackexchange.com/questions/431/what-are-the-best-practices-for-using-polymorphism-in-apex

http://th3silverlining.com/2009/12/23/polymorphism-driven-by-apex-class-inheritance/

http://www.salesforce.com/us/developer/docs/dbcom_apex/Content/langCon_apex_SOQL_polymorphic_relationships.htm


Regards,
Ashish