Friday 30 June 2017

Function vs Method in Python

Cited from the book "Data Structure and Algorithms in Python"

The general term function to describe a traditional, stateless function that is invoked without the context of a particular class or an instance of that class.

The term method to describe a member function that is invoked upon a specific object using an object-oriented message passing syntax.

No comments:

Post a Comment