Results 1 to 3 of 3
- 12-05-2011, 01:18 AM #1
Member
- Join Date
- Nov 2011
- Posts
- 49
- Rep Power
- 0
Does passing array to methods can lead to procedural paradigm?
Greetings EveryOne

Does passing array to methods can lead to procedural paradigm?
Is it better avoided or it can be done while preserving an oo design?
Thank You In Advance
Knowledge Is Power! Don't give me a fish but teach me how to catch one.gif)
I am not asking you to code it for me, what i need is guidance so i can learn
- 12-05-2011, 02:48 PM #2
Member
- Join Date
- Nov 2011
- Posts
- 49
- Rep Power
- 0
Re: Does passing array to methods can lead to procedural paradigm?
Note for thous who might get annoyed this question been asked here since no one answered
Does passing array to methods can lead to procedural paradigm?Knowledge Is Power! Don't give me a fish but teach me how to catch one.gif)
I am not asking you to code it for me, what i need is guidance so i can learn
- 12-05-2011, 03:42 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
Re: Does passing array to methods can lead to procedural paradigm?
Arrays are quite old fashioned data structures but they exist in Java, so why not use them? As long as you just use them if you need an indexable sequence of things and you know the (fixed) size of the sequence in advance, an array will do fine. Don't impose any other structure on those arrays or you'll be programming Fortran like code.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Arrays and passing values to methods help please.
By toppcon in forum New To JavaReplies: 21Last Post: 07-28-2011, 05:05 AM -
passing arguments to other methods
By popeyito18 in forum New To JavaReplies: 2Last Post: 07-02-2011, 11:01 PM -
passing a .txt into an array
By j_rod722 in forum New To JavaReplies: 6Last Post: 02-07-2011, 11:45 PM -
Problem passing objects as parameters to remote methods via RMI
By nicoeschpiko in forum New To JavaReplies: 1Last Post: 02-03-2011, 05:43 PM -
Passing a 2D array
By toymachiner62 in forum New To JavaReplies: 6Last Post: 10-23-2009, 04:05 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks