
Signature
---------------------------------------------------------------------
Greg R. Broderick usenet200705@blackholio.dyndns.org
A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------
"John" <rds1226@sh163.net> wrote:
>> How can I disable the first one for multiple choice? Perhap I can let the
>> super() redirected to NULL?
> Extract the System.out.println() to another method in both classes, one that
> does not call super.
>
> Call this new method in your code that is presently calling the c'tor.
As a general rule, don't do anything in a constructor that is not
construction. Do actions in methods, not in constructors.
> choice=new choices();
> answer=new answers();
Also, by convention your class names should begin with an upper-case letter.
> setChoicesDone=false;
Using "set" as the prefix to a variable name is also somewhat jarring to those
accustomed to that as the start of a method name. Readability is enhanced if
you use nomenclature from a widely-used convention like the Bean accessor
patterns only for that convention.

Signature
Lew