why are functions called method in java...???:o
Printable View
why are functions called method in java...???:o
Because. ;)
To be different.
Its because if u use methods and function, u are implementing the powerful use of OOP (Object Oriented Programing). When u use a function u have to call it in order for that work.
Its a power full thing to use a function for a better readability of codes. Actually, when coding a large application, it implies a long lines of codes. that's where you well apply calling of functions to a method.
Hehe.. i just dont know how to explain it more. but theirs a lot of explanation.
Well summarizing what I found on Google:
Functions are bits of code that are not related to any objects. They are similar to static methods in Java. Functions in Java are called methods because they all are related to objects.
thank u bro....