just curious, will it not work if you create the Handler Instance without typeCasting it to parent? I am not able to understand what is the need for it Thanks in advance.. The video is very Informative :)
@TarunHndsm4 ай бұрын
@@mpzeeshan3375 Thank you so much for replying. The reason why I typecast it to the parent class "TriggerFrameworkAbstract" on line #16 is because It makes the framework generic and It also allows user to create multiple handler/helper class in metadata and this framework will call all those Handler/Helper one by one. Also we can hardcode the child class(Handler/Helper) on line #16 but it will prevents/ makes it complex for user to extend it to multiple Handler/Helper class for all sobjects.
@mpzeeshan33754 ай бұрын
@@TarunHndsm okay, thanks
@Iamgauravvv Жыл бұрын
Very well explained! Thanks 🙏
@abhishekchitransh6035 Жыл бұрын
What is an abstraction means and why and where it is used in industry? What is the industry purpose of writing abstract methods? Can this purpose be achieved using hook methods?