Class problem: getting incorrect output

Printable View