An object is an instance of a class.
- 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.
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.
Track | Exercise | Changes |
---|---|---|
C# | elons-toys | None |