[ROOT] / doc / toc / ARCCore / Class / IP / ToString


The ToString()-implementation in the classes implementing this interface is supposed to give a short concise representation of the object for debugging and logging purposes, that is, intended for human consumption. The most 'important' implementation is probably the one in PRich (ToString) because that one is often the basis for your entity classes like 'Customer', 'Order' and so on


NOTE: Having ToString() as an interface method is kind of pointless with regard to forcing and implementation, because any object implements ToString() anyway, and therefore the compiler will not complain about missing implementations in any classes implementing this interface.
For some explanation of the logic behind this, see (tldr "class always win") http://www.lambdafaq.org/why-cant-default-methods-override-equals-hashcode-and-tostring/


Details

Generated 2024-04-20 04:59:16.214 UTC