Objects
November 4, 2020 ยท View on GitHub
The Concept
An object is an instance of a class.
What to cover
- How to create an object. The syntax to create a new instance of a class.
- How to call members on an object. How to use fields/methods on a class instance.
Exercises
Remote Control Car
This exercise models a remote control car that keeps track of the distance it has driven and its battery charge percentage. The reference implementation (C#) teaches:
- Creating an instance of a class.
- Using fields and methods on an instance.
Implementations
| Track | Exercise | Changes |
|---|---|---|
| C# | elons-toys | None |