oop-examples/rust/Instances.md
2020-05-04 19:36:23 +02:00

246 B

Rust Example

Language specific

  • Rust doesn't use the 'new' keyword
  • Classes in Rust require all attributes to be defined at all times, so you have to define all the data on creation.

Relevant Files