Loading video...
QuickNotes™ 
Methods
Methods are used to access private data elements of a class and operate on them. Methods provide access to object data and also provide ways to modify data elements of an object.
Methods have three parts:
Header (To communicate with the outside world and identify a method by name)
Code segment (Java code to perform the task)
Return statement to send back the result
Parameters are variables used in the header of a method to bring in the values needed to do the task.
Formal parameters are the one declared in the header.
Actual parameters are the variables used in the calling of the method
Local variables are the variables declared inside a method.
Discussion 
Please login to ask a question and view discussion.













