A method is a chunk of code which performs actions on data, the method
name is defined as the variable name and To call a method, use this
statement method_name(pass parameter if required);.
if you have learned a bit c or any other programming language then You
probably know about what are functions this is what we are discussing here
but we are calling it method because it exists inside a class.
Other synonyms for the method : subroutine, procedure, function.
A method is a chunk of code which performs actions on data, the method
name is defined as the variable name and To call a method, use this
statement method_name(pass parameter if required);.
if you have learned a bit c or any other programming language then You
probably know about what are functions this is what we are discussing
here but we are calling it method because it exists inside a
class.
Other synonyms for the method : subroutine, procedure, function.
No comments:
Post a Comment