JPDev to Programmer Humor · 1 year agoAlways try sudoimagemessage-square94linkfedilinkarrow-up11.16Karrow-down176
arrow-up11.09Karrow-down1imageAlways try sudoJPDev to Programmer Humor · 1 year agomessage-square94linkfedilink
minus-squareKogasalinkfedilinkarrow-up3·1 year agoYeah, properties (like a field but with a getter and/or setter method, may or may not be backed by a field) are PascalCase
minus-squarerobotica@lemmy.worldlinkfedilinkarrow-up3·1 year agoHow is OldMan a property here? It’s clearly the name of a class
minus-squarerobotica@lemmy.worldlinkfedilinkarrow-up1·1 year agoYes I know, I’ve coded in .NET before, but so are class names.
minus-squareKogasalinkfedilinkarrow-up1·1 year agoOkay, but this makes more sense as an instance method rather than a static one
Yeah, properties (like a field but with a getter and/or setter method, may or may not be backed by a field) are PascalCase
How is OldMan a property here? It’s clearly the name of a class
Instance properties are PascalCase.
Yes I know, I’ve coded in .NET before, but so are class names.
Okay, but this makes more sense as an instance method rather than a static one