Thread: First REAL Object Oriented Program (Java)
i have been reading lot true oop , how differs procedural programming. difference. i'm ready! few days ago i posted gui csv reader making.
here classes have come with:
can think of other essential classes? can think of reason may not need class/object i've listed?code:start: displays gui gui: adds top add content add bottom jframe top: contains open jbutton save jbutton search functionality open: filechooser gui (directory browser) select file dataparser(); createrecord(); pass results content class save: gui (directory browser) select destination folder prevent user saving file named existing file search: contains jfield , save jbutton; conducts search passes search result string content content: data jtable if opening csv file searchreults jtable if user has conducted search bottom: numresults() pageresults() utility class: random functions not belong in of object mentioned above
as rough guide (not true though) tend use nouns classes, , verbs methods in classes.
class called 'open' doesnt fit how i'd write it. not saying it's wrong though.
write quick paragraph whole thing should do, go , underline of nouns in paragraph. might give starting point of classes.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] First REAL Object Oriented Program (Java)
Ubuntu
Comments
Post a Comment