Skip to content

Section "Classes and Structures" has an error in the example #239

@rcritz

Description

@rcritz

In the example definition of a well-styled class definition, the describe function references a function called computeArea() but defines a function area() instead.

I'd also observe that it would be an even better styled class definition if it conformed to CustomStringConvertible instead of implementing a describe function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions