Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1127 Required string value incorrect for 3 classes

None
invalid
Rick McGuire
None
none
3
2012-10-10
2012-10-10
Walter
No

4.0.1 Windows
CirculatQueue -- null string
Stem -- Null string
OrderedCollection -- The OrderedCollection class

1 Attachments

Discussion

  • Rick McGuire
    Rick McGuire
    2012-10-10

    This is working correctly. The stem class overrides the string method and returns the string value of the stem name (or the current assigned default value), since you did not supply a name when you created the instance, the value is the null string.

    The OrderedCollection problem is a bug in your program. Since you did not create a new instance of the class, the correct string value of the class object is "The OrderedCollection class"

    The CircularQueue class overrides the string method to return the items as a comma separated list. Since the queue is empty, just a null string is returned.

     


Anonymous


Cancel   Add attachments