you are viewing a single comment's thread
view the rest of the comments
[–] 128 points 2 years ago (10 children)

Calls a static method on the OldMan class instead of the instance of oldMan that is actually dying.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 63 points 2 years ago* (2 children)

    Tonight's story: Every man older than OldMan.getMinimumAge() has been in perfect *unchanging* health for the last few months‽ To find out why, stay tuned! Our experts chime in to help you understand....

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (6 children)
  • [–] 2 points 2 years ago (5 children)

    Is this some .NET convention that references to instances start with capital letters?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 2 years ago (4 children)

    Yeah, properties (like a field but with a getter and/or setter method, may or may not be backed by a field) are PascalCase

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 2 years ago (3 children)

    How is OldMan a property here? It's clearly the name of a class

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 2 years ago (2 children)

    Instance properties are PascalCase.

  • source
  • parent
  • hideshow 2 child comments