Results 1 to 5 of 5
Thread: classes structure
- 03-16-2012, 07:55 PM #1
Senior Member
- Join Date
- Jan 2012
- Posts
- 142
- Rep Power
- 0
classes structure
Lets say I have to build a GUI which has a button and when the user clicks this button information is shown. Could someone explain what classes I would need because at the moment I have everything in one file and will get marked down unless all the code is structured into a set of classes and method. But I am not sure entirely what this means and how to do this.
Thanks for your time.
- 03-16-2012, 08:43 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: classes structure
Write down your problem as if it were a little story, in plain English. Every noun is a good candidate for a class and every verb is a nice candidate for a method. This is not a law cast in stone but it works fine for starters.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-16-2012, 08:53 PM #3
Senior Member
- Join Date
- Nov 2011
- Location
- Turkey
- Posts
- 378
- Blog Entries
- 24
- Rep Power
- 2
Re: classes structure
Study Mode - View - Controller pattern.
- 03-17-2012, 01:19 AM #4
Senior Member
- Join Date
- Jan 2012
- Posts
- 142
- Rep Power
- 0
-
Similar Threads
-
Classes Help!!! two classes with object question.
By stuckonjava in forum New To JavaReplies: 16Last Post: 02-10-2012, 01:39 AM -
Problem using Structure in JNA
By okaitt in forum New To JavaReplies: 0Last Post: 04-28-2011, 03:59 PM -
Which data structure to use?
By malaguena in forum New To JavaReplies: 4Last Post: 04-05-2011, 04:41 PM -
Use if then else structure, help
By paul in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:00 AM -
Help with Structure
By Albert in forum New To JavaReplies: 1Last Post: 07-13-2007, 03:27 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks