The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mohit Sinha wrote:
There is businessProcessor class where all further calculations take place. To make the object model strictly representing the real world business objects we kind of arrived at this structure. Now in the businessProcessor class it becomes inevitable for us to decipher what is the sub type (light,medium or heavy) so we grab all the appropriate input passed along via the Type object.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mohit Sinha wrote:
But this brings another question in my mind. Aren't child objects in an inheritance free to have their own specific methods. The knowledge of these new implementations will never be known parent and will throw an error when trying to access new methods of the child object via a parent object reference.
Are you saying child classes should only stick to overriding and not have new methods.
Is downcasting something to be avoided all the time. How can a downcasting scenario be handled differently.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |