Skip to content

Inheritance example does not actually implement inheritance using the extends keyword #921

Closed
@NSDesign

Description

@NSDesign

Hi there,

Unlike the Processing.org inheritance example the P5.js doesn't actually implement class inheritance. Instead two separate classes are defined, each effectively defining their own separate spin methods. Whereas, the processing.org example, both the classes SpinArms and SpinSpots extend the Spin class respectively.

Cheers

Metadata

Metadata

Assignees

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