Tagged Questions
5
votes
4answers
323 views
How to apply one of the OOP concepts (Closed for Modification and Open for extension)?
Days before, I created Question, Quiz, and Main classes. One Quiz has one or more Questions. From the main class I first create Question objects (the constructor accepts an array of numbers). The Quiz ...
7
votes
4answers
957 views
Abstract methods vs instance variables for reusable objects
I have quite a bit of Java code that I'm re-working to be re-used. The problem is that there are many pieces that are project specific so there are ends up being a higher level of coupling between ...