Vertiefungswissen anzeigenVertiefungswissen verbergenWe discuss the difference between "Functions" and "Methods" inside Classes.
Although these two terms are often used interchangeably, there is a distinction between them:
Methods belong to a Class while Functions belong to an Object, i.e. an instance created from a Class.