+ 1
Definition of method or what does method mean?
4 Respostas
+ 5
IN SIMPLE WORDS , METHODS ARE FUNCTION DECLARED INSIDE CLASS.
FUNCTION ARE GROUP OF STATEMENT INSIDE CURLY BRACES WHICH PERFORM ACTION.
+ 5
A method is a group of Java statements that perform particular operation on some data and may or may not return a result to the main method.
+ 1
It’s like a function, but it “belongs” to a type of object. Usually because that specific function only makes sense to be performed on that specific type of object.
0
thank you guys