| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Member
Join Date: Jan 2007
Age: 26
Posts: 48
Thanks: 1 Thanked 3 Times in 3 Posts Thanks: 1
Thanked 3 Times in 3 Posts
Rep Power: 2
|
pls. exact diff. b/w function & method
hi frenz,
what is the exact difference between function and a method interview poing of view.... |
|
|
|
|
|
#2 (permalink) |
|
Moderator
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57 Thanked 78 Times in 63 Posts Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17
|
Re: pls. exact diff. b/w function & method
A function should always return a value, a method may or maynot return a value,We dont have functions in java. C has functions , C++ and Java has methods defined in a class
Let me know your questions
__________________
M0h@n |
|
|
|
| The Following User Says Thank You to t_mohan For This Useful Post: |
Arvind_pal05 (20-06-07)
|
|
|
#3 (permalink) |
|
Member
Join Date: May 2007
Location: Bangalore
Posts: 37
Thanks: 1 Thanked 0 Times in 0 Posts Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: pls. exact diff. b/w function & method
But i think in C we can have functions with void type also..
__________________
Thanks & Regards, Deepesh The Language of Friendship is not Words but Meanings.... |
|
|
|
|
|
#4 (permalink) |
|
Super Moderator
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117 Thanked 241 Times in 198 Posts Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51
|
Re: pls. exact diff. b/w function & method
Generally this naming convension is not clearly observed in programming languages. Function and method are generally interchanged. They are only part of theoritical concepts. This concept is clearly differenciated in Oracle Pl/sql.
In C they are called functions, in C++ they are called member functions and in Java the same is called as method. What ever you call, they are one and same. Ofcourse, some are inside class and some are not. We can argue that functions/methods returning void are methods ortherwise, they are simply functions. Any comments from any developer is welcome. Thanks, Krishna
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation. |
|
|
|
| The Following 3 Users Say Thank You to sk_kireeti For This Useful Post: |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ejb | bujjimadhu | JAVA Technologies | 4 | 10-09-06 10:15 PM |
| java JSP | naga | JAVA Technologies | 4 | 21-08-06 05:03 PM |
| Whats the difference between thesr | shilpa | VB / ASP.NET Technologies | 5 | 08-03-06 12:09 PM |
| JAVA collection | naga | JAVA Technologies | 0 | 21-02-06 06:01 AM |
| JAVA PART3 | naga | JAVA Technologies | 0 | 18-02-06 07:48 AM |