Prefer Categories for adding functionality to an existing class and also want to affect the behaviour of All instances
whereas SubClassing is better option for customization and if benaviour of only certain instance needs to change and retain the original method for others.
whereas SubClassing is better option for customization and if benaviour of only certain instance needs to change and retain the original method for others.
No comments:
Post a Comment