This website requires JavaScript.
Explore
Help
Sign In
Timo
/
oop-examples
Watch
1
Star
0
Fork
0
You've already forked oop-examples
Code
Issues
Pull Requests
Releases
Wiki
Activity
oop-examples
/
rust
/
instances
History
Timo Hocker
551e8835d7
extra info for other languages
2020-04-01 15:29:10 +02:00
..
src
extra info for other languages
2020-04-01 15:29:10 +02:00
Cargo.lock
instances
2020-03-28 14:45:55 +01:00
Cargo.toml
instances
2020-03-28 14:45:55 +01:00
README.md
extra info for other languages
2020-04-01 15:29:10 +02:00
README.md
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
main.rs