Software Engineering vocabulary · Programming Concepts

Method

Meaning in software engineering, with examples

/ˈmeθəd/nounCore term

In software engineering, method means: A function that belongs to a class or object and usually works with that object's data, for example user.save() or list.sort().

In Turkish: metot, yöntem

How it is used

You call a method on an object: 'call the save method on the user'. You also hear 'static method', 'private method' and 'helper method'. In casual talk, many people use 'method' and 'function' as if they meant the same thing.

Example sentences

  1. Move this logic into a private method so the controller stays short.

  2. The getTotal method returns the wrong value when the cart is empty.

Common collocations

  • call a method
  • static method
  • private method
  • helper method
  • override a method

More terms: Programming Concepts

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: