Closed (outdated)
Project:
Quiz
Version:
6.x-5.x-dev
Component:
Code - Quiz core
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Aug 2009 at 23:54 UTC
Updated:
15 Jul 2016 at 20:57 UTC
Jump to comment: Most recent
Comments
Comment #1
mbutcher commentedI would support adding this to QuizQuestion either as an abstract method or with a default implementation that provides some very generic answer.
Comment #2
turadg commentedOk. I think I'll do it then. Next question, since you wrote the OO system, what do you think of making an AbstractQuizQuestion to go along with the QuizQuestion interface? Currently none of the quiz questions have parent classes, so they could all inherit the new abstract one.
Comment #3
mbutcher commentedI would like to have an abstract class. The original design was, in fact, an abstract class. (The explanation as to why it is not is boring and irrelevant.)
So, yes, adding an abstract class would be good. I encouraged falcon to use his multichoice object as a base class for further refinements of multiple choice question types, too.
I just noticed that in Quiz 3, AbstractQuizQuestionResponse does not appear to indicate that it implements QuizQuestionResponse.... I'd better check on that in Quiz 4.
Comment #4
turadg commentedFYI, setting AbstractQuizQuestionResponse to implement QuizQuestionResponse required two other changes so the signatures of the interface methods and implementation methods matched. e.g.,
-->
Comment #5
falcon commentedComment #6
djdevinThis issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.