help with some java

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

Re: help with some java

Post by deathbystereo on Tue Feb 19, 2013 7:27 am
([msg=73891]see Re: help with some java[/msg])

Depending on the class you're doing this for, you may consider making this application more object oriented. One of the classes I took early on in CS was OOP with java, and we'd get extra points if we used some of the concepts from the lectures. This source reads more like a c source file than a java one, not that this is a bad thing if you're still learning.

If it doesn't matter, then it may be over kill, but a simple change would be creating a Quiz class that contains all the quiz related logic and handles creation of question and answer classes (or strings whatever you choose). The advantage of using OOP design is data encapsulation and modularity.

Just my 2 cents
New User
New User
Posts: 1
Joined: Tue Feb 19, 2013 7:14 am
Blog: View Blog (0)


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests