+ 1

Definition of method or what does method mean?

31st May 2018, 1:50 PM
guru sri charan
guru sri charan - avatar
4 Respostas
+ 5
IN SIMPLE WORDS , METHODS ARE FUNCTION DECLARED INSIDE CLASS. FUNCTION ARE GROUP OF STATEMENT INSIDE CURLY BRACES WHICH PERFORM ACTION.
31st May 2018, 1:59 PM
Meet Mehta
Meet Mehta - avatar
+ 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.
31st May 2018, 2:43 PM
Nova
Nova - avatar
+ 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.
31st May 2018, 9:39 PM
Pedro Demingos
Pedro Demingos - avatar
0
thank you guys
31st May 2018, 5:56 PM
guru sri charan
guru sri charan - avatar