Results 1 to 2 of 2
- 05-16-2012, 02:06 AM #1
Senior Member
- Join Date
- Apr 2012
- Posts
- 115
- Rep Power
- 0
What is the standard for the composition of methods in a class?
I know to put the constructor first (increasing parameters) and the main method last, apart form that since my programs were never that big I've positioned my methods more or less arbitrarily. I've been tought many standards and conventions from my books but nothing on this.
should I make it alphabetical with the excepton of getters/setters that are grouped before the main? because I was heading that way for some reason
-
Re: What is the standard for the composition of methods in a class?
This is not a dumb question, not at all, and I'm not sure if there is any one universally agreed upon standard, but you can't go wrong reviewing what Oracle has to say on this at their standards document site:
Similar Threads
-
A class calling methods from external class
By Aaron5466 in forum New To JavaReplies: 4Last Post: 04-16-2012, 11:36 AM -
Computing standard deviation using public static classes to call from another class
By exeye0h in forum New To JavaReplies: 15Last Post: 02-13-2012, 09:00 PM -
Problem using methods from other class
By higashi in forum New To JavaReplies: 5Last Post: 10-13-2011, 09:35 AM -
How can I call abstract class methods from another class
By srinivas2828 in forum New To JavaReplies: 13Last Post: 03-12-2010, 02:33 PM -
Declare methods in a class
By Adiel224 in forum New To JavaReplies: 5Last Post: 09-19-2008, 10:38 AM


2Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks