Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Is putting a method on a class called 'method overloading'?

It most certainly is.. _if_ the method you are adding has the name of a functionality that is either inherently part of its spec or effectively so if by community conventions.

e.g. when you make a method with signature `boolean equals(Object other)` in java, it is literally, as in the very spec itself calls it this, 'overloading'.

The term is appropriate. `*` is commonly understood to be some sort of numeric operation with the properties that it is reflective, commutative, etc. If you decide to add a definition for a class you're writing, the term 'overloading' is entirely appropriate.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: