What is a method in Java?

0
21 апр 2017 20:58
Can someone provide a simple explanation of methods in Java?

Ответов: 1

0
21 апр 2017 21:02
A function is a piece of code that is called by name. It can be passed data to operate on (i.e. the parameters) and can optionally return data (the return value). All data that is passed to a function is explicitly passed. A method is a piece of code that is called by a name that is associated with an object.
Модераторы: Lucky senleft guroo kat AlisaTest PetraStill Julik igorss
Сейчас эту тему просматривают: Нет