C++ Beginner · exercise 05
Structs & classes
Build a Joint class with private data and a const query method.
C++ Beginner lesson 05Guided steps
- 1.Give Joint a constructor that stores a name and an angle.
- 2.Add bool withinLimit(double limit) const that answers without changing the object.
- 3.Print the name plus ok or blocked for each joint.
Your code
Your code is saved in this browser after every run and restored next time.